Click here to Skip to main content
16,011,784 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Setting Focus on Property Page Pin
Al_Pennyworth8-Jan-03 8:31
Al_Pennyworth8-Jan-03 8:31 
Questionanyone know this error ? Pin
joshfl8-Jan-03 6:54
joshfl8-Jan-03 6:54 
AnswerRe: anyone know this error ? Pin
joshfl8-Jan-03 7:01
joshfl8-Jan-03 7:01 
GeneralRe: anyone know this error ? Pin
Nitron8-Jan-03 7:09
Nitron8-Jan-03 7:09 
GeneralRe: anyone know this error ? Pin
joshfl8-Jan-03 7:39
joshfl8-Jan-03 7:39 
GeneralMRU Pin
tsb8-Jan-03 6:51
tsb8-Jan-03 6:51 
GeneralRe: MRU Pin
Gary Kirkham8-Jan-03 8:00
Gary Kirkham8-Jan-03 8:00 
Generalbackground color Pin
MemLeak8-Jan-03 6:38
MemLeak8-Jan-03 6:38 
Hi guys!

I'm a beginner and I just want to know how to change the background color of a MDI (without doc/view)app. There's a lot of exemples out there, but they are for dialog based app.

Also, I have some other problems. I'm not able to change the icon and title of my child windows.

I tried:

BOOL OpenGL_ContextMFC::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying the CREATESTRUCT cs
if( !CMDIChildWnd::PreCreateWindow(cs) )
return FALSE;
cs.lpszName = "My child window name";//change my name here
cs.cx = 500;
cs.cy = 500;
cs.dwExStyle &= ~WS_EX_CLIENTEDGE;
cs.lpszClass = AfxRegisterWndClass(0);

return TRUE;
}

I can change the height and width of the windows but not the name.

Any ideas?

Thanks!Smile | :)
GeneralRe: background color Pin
Mazdak8-Jan-03 6:45
Mazdak8-Jan-03 6:45 
GeneralRe: background color Pin
Mazdak8-Jan-03 6:50
Mazdak8-Jan-03 6:50 
GeneralParsing a CSV file - problem Pin
lbc8-Jan-03 6:19
lbc8-Jan-03 6:19 
GeneralRe: Parsing a CSV file - problem Pin
Nitron8-Jan-03 6:28
Nitron8-Jan-03 6:28 
GeneralRe: Parsing a CSV file - problem Pin
Nitron8-Jan-03 6:31
Nitron8-Jan-03 6:31 
GeneralRe: Parsing a CSV file - problem Pin
lbc8-Jan-03 6:45
lbc8-Jan-03 6:45 
GeneralDoc - View Architecture Question! Pin
Raphael Kindt8-Jan-03 6:01
Raphael Kindt8-Jan-03 6:01 
GeneralRe: Doc - View Architecture Question! Pin
Alvaro Mendez8-Jan-03 6:19
Alvaro Mendez8-Jan-03 6:19 
GeneralRe: Doc - View Architecture Question! Pin
Ranjan Banerji8-Jan-03 6:26
Ranjan Banerji8-Jan-03 6:26 
GeneralRe: Doc - View Architecture Question! Pin
KaЯl9-Jan-03 3:11
KaЯl9-Jan-03 3:11 
GeneralRe: Doc - View Architecture Question! Pin
Raphael Kindt9-Jan-03 3:21
Raphael Kindt9-Jan-03 3:21 
GeneralClass and variable renaming Pin
Alois Kraus8-Jan-03 4:30
Alois Kraus8-Jan-03 4:30 
GeneralRe: Class and variable renaming Pin
AlexO8-Jan-03 5:28
AlexO8-Jan-03 5:28 
GeneralRe: Class and variable renaming Pin
Alvaro Mendez8-Jan-03 5:43
Alvaro Mendez8-Jan-03 5:43 
GeneralDetecting double-click on popup menu Pin
mynab8-Jan-03 3:51
mynab8-Jan-03 3:51 
Generaleek! CBrush & SelectObject problem Urgent cwk Pin
smiler8-Jan-03 3:44
smiler8-Jan-03 3:44 
GeneralRe: eek! CBrush & SelectObject problem Urgent cwk Pin
56789012348-Jan-03 3:57
56789012348-Jan-03 3:57 

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.