Click here to Skip to main content
16,012,107 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ListBox problem Pin
basementman12-Jan-05 4:01
basementman12-Jan-05 4:01 
GeneralRe: ListBox problem Pin
Ivan Cachicatari12-Jan-05 7:27
Ivan Cachicatari12-Jan-05 7:27 
Generalprocess ID to process name Pin
2000ram11-Jan-05 18:22
2000ram11-Jan-05 18:22 
GeneralRe: process ID to process name Pin
Aamir Butt11-Jan-05 19:33
Aamir Butt11-Jan-05 19:33 
GeneralVirtual Destructors Pin
Neelesh K J Jain11-Jan-05 18:07
Neelesh K J Jain11-Jan-05 18:07 
GeneralRe: Virtual Destructors Pin
Cedric Moonen11-Jan-05 19:58
Cedric Moonen11-Jan-05 19:58 
GeneralRe: Virtual Destructors Pin
digwizfox13-Jan-05 7:16
digwizfox13-Jan-05 7:16 
GeneralGDI Edit Questions, Please Help Pin
c++code10111-Jan-05 17:50
c++code10111-Jan-05 17:50 
Hello,

I'm very new to programming but have learned allot over the past few months. Here is my issue.

I have a program that I'm working on. It's written in C not C++ and it is GDI based. I'm using MS Visual Studio 2003. I have the ability to edit everything that is in the .rc file under the project, dialogs, the menus, and ext. What I don't have the ability to edit is the items below the menu such as the pens and other visual designs that are contained within the main window of the program. This is not like VB or C# where you can just edit the main window from the IDE. I have no ability whatsoever to change the overall visual design or feel of the main body of the program other than manual editing of the code, for example:

// draw check box
// We select the brown pen anyway to make sure we have a valid value
// for hOldPen for later calls to SelectObject()
hOldPen = SelectObject( hDC, lpe->hBlackPen );
if ( !lpe->tracks[i].bData )
{
pts[0].x = pts[3].x = pts[3].x = ((hx[1]+1)/2 - 4) - lpe->dx;
pts[1].x = pts[2].x = pts[0].x + 12;
pts[0].y = pts[1].y = pts[4].y = rc.top + 1;
pts[2].y = pts[3].y = rc.top + 13;
Polyline( hDC, pts, 5 );
}

if ( lpe->tracks[i].bChecked && !lpe->tracks[i].bData )
{
SelectObject( hDC, lpe->hBlackPen );
pts[0].x += 3;
pts[0].y += 3;
pts[1].x = pts[0].x + 2;
pts[1].y = pts[0].y + 3;
pts[2].x = pts[1].x + 8;
pts[2].y = pts[1].y - 8;
Polyline( hDC, pts, 4 );

pts[0].x += 1;
pts[1].x = pts[0].x + 2;
pts[1].y = pts[0].y + 3;
pts[2].x = pts[1].x + 8;
pts[2].y = pts[1].y - 8;
Polyline( hDC, pts, 4 );
}
SelectObject( hDC, hOldPen );
}

SetBkMode( hDC, oldBkMode );

SelectObject( hDC, hOldFont );

EndPaint( hWnd, &p );
}

The code above is for just displaying a simple checkbox for selecting items displayed within the main window. I have been able to modify the code to an extend but it takes allot off time and pulling out of hair;) Really what I would like to do is be able to change these things at least as easy as I can make changes in the .rc file under the MSVC resource editor. There has to be an easier way to make changes or additions besides what I'm now doing. Unfortionally, I'm not the original author of this program so I don't know what editor they used to compose the GUI.

Better yet, I would like to spice up my main window from the generic look it has now to something better as well as be able to add to it. Are there any libraries out there that would easily integrate into this GDI application? I really like the new Office 2003 look and feel.

I would very much appreciate any help I can get and thank everyone in advance for your time in helping me.

Jamie



GeneralCProgressCtrl problem in Status bar Pin
Neelesh K J Jain11-Jan-05 16:44
Neelesh K J Jain11-Jan-05 16:44 
GeneralNot a problem... Pin
Kochise11-Jan-05 21:51
Kochise11-Jan-05 21:51 
Generalgethostbyname C2143 Pin
Vadim Tabakman11-Jan-05 14:57
Vadim Tabakman11-Jan-05 14:57 
GeneralRe: gethostbyname C2143 Pin
Antony M Kancidrowski12-Jan-05 2:28
Antony M Kancidrowski12-Jan-05 2:28 
GeneralRe: gethostbyname C2143 Pin
Vadim Tabakman12-Jan-05 10:00
Vadim Tabakman12-Jan-05 10:00 
GeneralCRichEditView - Dragging file into Pin
Ed K11-Jan-05 14:41
Ed K11-Jan-05 14:41 
GeneralRe: CRichEditView - Dragging file into : ON_WM_DROPFILES() Pin
Ed K12-Jan-05 6:42
Ed K12-Jan-05 6:42 
Generalrecommend gui library Pin
Anonymous11-Jan-05 14:38
Anonymous11-Jan-05 14:38 
GeneralRe: recommend gui library Pin
Ed K11-Jan-05 14:45
Ed K11-Jan-05 14:45 
GeneralRetrieve FDT(File Directory Table) for specific folders!! !! Pin
LiYS11-Jan-05 13:41
LiYS11-Jan-05 13:41 
GeneralRe: Retrieve FDT(File Directory Table) for specific folders!! !! Pin
Maximilien11-Jan-05 14:03
Maximilien11-Jan-05 14:03 
GeneralRe: Retrieve FDT(File Directory Table) for specific folders!! !! Pin
LiYS11-Jan-05 14:21
LiYS11-Jan-05 14:21 
GeneralRe: Retrieve FDT(File Directory Table) for specific folders!! !! Pin
Maximilien11-Jan-05 16:05
Maximilien11-Jan-05 16:05 
GeneralRe: Retrieve FDT(File Directory Table) for specific folders!! !! Pin
LiYS11-Jan-05 16:18
LiYS11-Jan-05 16:18 
GeneralRe: Retrieve FDT(File Directory Table) for specific folders!! !! Pin
Maximilien12-Jan-05 0:41
Maximilien12-Jan-05 0:41 
QuestionHow to seek >2gb files with fseek? Pin
IGx8911-Jan-05 12:07
IGx8911-Jan-05 12:07 
AnswerRe: How to seek >2gb files with fseek? Pin
basementman12-Jan-05 4:09
basementman12-Jan-05 4:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.