Click here to Skip to main content
16,010,268 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMoving objects on a form... Pin
Anonymous4-Feb-04 11:48
Anonymous4-Feb-04 11:48 
GeneralCan't receive WM_DRAWITEM message. Pin
Cael4-Feb-04 11:25
Cael4-Feb-04 11:25 
GeneralRe: Can't receive WM_DRAWITEM message. Pin
basementman4-Feb-04 11:34
basementman4-Feb-04 11:34 
GeneralRe: Can't receive WM_DRAWITEM message. Pin
Cael4-Feb-04 12:51
Cael4-Feb-04 12:51 
GeneralRe: Can't receive WM_DRAWITEM message. Pin
Roger Allen4-Feb-04 23:32
Roger Allen4-Feb-04 23:32 
GeneralRe: Can't receive WM_DRAWITEM message. Pin
Cael5-Feb-04 3:45
Cael5-Feb-04 3:45 
GeneralPrint .Net Bitmap With MFC Pin
Shaun Becker4-Feb-04 10:53
Shaun Becker4-Feb-04 10:53 
GeneralChanging Control Color Pin
monrobot134-Feb-04 10:30
monrobot134-Feb-04 10:30 
I have a dialog app and I'm trying to change the background of most of the controls on the dialog. This is the code I'm using, but it isn't changing the controls backgrounds.
if (nCtlColor == CTLCOLOR_STATIC)
   pDC->SetBkColor (RGB (255, 255, 255))
This code is in the OnCtlColor function of my dialog class. When I run the program only static controls colors are changing and not my checkboxes or groupboxes. According to my reading CTLCOLOR_STATIC is the same id passed into the function for statics, groupboxes, checkboxes, and a couple other control types. Am I wrong? If so how do I go about changing the background of those controls.

Thanks.

- monrobot13
QuestionHow to put a CString variable in the IDR_MAINFRAME string? Pin
Davex_4-Feb-04 9:57
Davex_4-Feb-04 9:57 
GeneralUpdating Software (automatically) Pin
DanYELL4-Feb-04 9:54
DanYELL4-Feb-04 9:54 
Generalthe daily "WTF, my app. crashes" post ... Pin
Maximilien4-Feb-04 9:25
Maximilien4-Feb-04 9:25 
GeneralRe: the daily "WTF, my app. crashes" post ... Pin
Neville Franks4-Feb-04 10:04
Neville Franks4-Feb-04 10:04 
GeneralRe: the daily "WTF, my app. crashes" post ... Pin
Maximilien4-Feb-04 10:11
Maximilien4-Feb-04 10:11 
GeneralRe: the daily "WTF, my app. crashes" post ... Pin
Neville Franks4-Feb-04 10:16
Neville Franks4-Feb-04 10:16 
Generalautomatic setting a text in a text box using an API function("SetWindowText function isn't valid") Pin
Amr Abdel-Mohsen4-Feb-04 9:11
Amr Abdel-Mohsen4-Feb-04 9:11 
GeneralRe: automatic setting a text in a text box using an API function("SetWindowText function isn't valid") Pin
Nick Parker4-Feb-04 9:57
protectorNick Parker4-Feb-04 9:57 
GeneralRe: automatic setting a text in a text box using an API function("SetWindowText function isn't valid") Pin
Diddy4-Feb-04 23:22
Diddy4-Feb-04 23:22 
GeneralRe: automatic setting a text in a text box using an API function("SetWindowText function isn't valid") Pin
Nick Parker5-Feb-04 2:37
protectorNick Parker5-Feb-04 2:37 
GeneralProblem with User Message Maps converting from VC6 to .net 2003 Pin
jhorstkamp4-Feb-04 8:06
jhorstkamp4-Feb-04 8:06 
GeneralRe: Problem with User Message Maps converting from VC6 to .net 2003 Pin
PJ Arends4-Feb-04 8:26
professionalPJ Arends4-Feb-04 8:26 
GeneralRe: Problem with User Message Maps converting from VC6 to .net 2003 Pin
jhorstkamp4-Feb-04 10:25
jhorstkamp4-Feb-04 10:25 
Generalconvert std::string to LPSTR or const char * Pin
_SaTaN_4-Feb-04 7:35
_SaTaN_4-Feb-04 7:35 
GeneralRe: convert std::string to LPSTR or const char * Pin
PJ Arends4-Feb-04 8:31
professionalPJ Arends4-Feb-04 8:31 
GeneralBooks Pin
Anonymous4-Feb-04 6:25
Anonymous4-Feb-04 6:25 
GeneralRe: Books Pin
Roger Wright4-Feb-04 6:58
professionalRoger Wright4-Feb-04 6:58 

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.