Click here to Skip to main content
16,008,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
General#File Error#'s Pin
Steve The Plant18-Dec-01 4:28
Steve The Plant18-Dec-01 4:28 
GeneralRe: #File Error#'s Pin
Alvaro Mendez18-Dec-01 6:04
Alvaro Mendez18-Dec-01 6:04 
GeneralRe: #File Error#'s Pin
Steve The Plant18-Dec-01 9:54
Steve The Plant18-Dec-01 9:54 
GeneralMaking MFC go fullscreen Pin
18-Dec-01 3:57
suss18-Dec-01 3:57 
GeneralRe: Making MFC go fullscreen Pin
Hadi Rezaee18-Dec-01 7:58
Hadi Rezaee18-Dec-01 7:58 
GeneralRe: Making MFC go fullscreen Pin
Rick York18-Dec-01 8:22
mveRick York18-Dec-01 8:22 
GeneralRe: Making MFC go fullscreen Pin
18-Dec-01 9:34
suss18-Dec-01 9:34 
GeneralRe: Making MFC go fullscreen Pin
Todd.Harvey18-Dec-01 8:47
Todd.Harvey18-Dec-01 8:47 
I've been doing either this (in InitDialog)
[ccode]
BOOL returnCode = SetWindowPos( this->GetActiveWindow(), 0, 0, ::GetSystemMetrics(SM_CXMAXIMIZED), ::GetSystemMetrics(SM_CYMAXIMIZED), SWP_SHOWWINDOW);

[/ccode]


or this:

[ccode]
CRect rect;
rect.top = 0;
rect.left = 0;
rect.right = ::GetSystemMetrics(SM_CXMAXIMIZED);
rect.bottom = ::GetSystemMetrics(SM_CXMAXIMIZED);

this->GetActiveWindow()->MoveWindow(rect,TRUE);

[/ccode]

If you do anything with OnSize, remember that it is called twice - once before InitDialog, and then again after InitDialog, and you can't move controls until InitDialog runs because they don't exit yet. (you didn't ask this, and I think I'm telling it correctly. You might also be interested in the EasySize class for moving dialog controls around as you resize a dialog - it is very helpful. (search this site if you are interested)
GeneralRe: Making MFC go fullscreen Pin
18-Dec-01 9:48
suss18-Dec-01 9:48 
QuestionHow to capture IE Event in WTL.... Pin
Huu Quynh18-Dec-01 3:44
Huu Quynh18-Dec-01 3:44 
GeneralExplain EnumChildWindows(...) Pin
Rickard Andersson2018-Dec-01 2:45
Rickard Andersson2018-Dec-01 2:45 
GeneralRe: Explain EnumChildWindows(...) Pin
Bill Wilson18-Dec-01 6:21
Bill Wilson18-Dec-01 6:21 
GeneralA Drawing Problem. Please HELP ! ! ! Pin
The_Server18-Dec-01 2:44
The_Server18-Dec-01 2:44 
GeneralRe: A Drawing Problem. Please HELP ! ! ! Pin
Joaquín M López Muñoz18-Dec-01 2:50
Joaquín M López Muñoz18-Dec-01 2:50 
GeneralRe: A Drawing Problem. Please HELP ! ! ! Pin
The_Server18-Dec-01 3:21
The_Server18-Dec-01 3:21 
GeneralDLL Linkage Problem Pin
James Spibey18-Dec-01 1:15
James Spibey18-Dec-01 1:15 
GeneralRe: DLL Linkage Problem Pin
Joaquín M López Muñoz18-Dec-01 2:43
Joaquín M López Muñoz18-Dec-01 2:43 
GeneralRe: DLL Linkage Problem Pin
James Spibey18-Dec-01 3:20
James Spibey18-Dec-01 3:20 
GeneralChange of BackGround Color Pin
San18-Dec-01 1:05
San18-Dec-01 1:05 
GeneralRe: Change of BackGround Color Pin
Rickard Andersson2018-Dec-01 1:53
Rickard Andersson2018-Dec-01 1:53 
GeneralCLSID from interface Pin
Ryszard Krakowiak18-Dec-01 1:01
Ryszard Krakowiak18-Dec-01 1:01 
GeneralRe: CLSID from interface Pin
Ryszard Krakowiak18-Dec-01 1:42
Ryszard Krakowiak18-Dec-01 1:42 
GeneralRe: CLSID from interface Pin
Tim Smith18-Dec-01 2:01
Tim Smith18-Dec-01 2:01 
GeneralPalm OS newcomer... Pin
Braulio Dez17-Dec-01 23:06
Braulio Dez17-Dec-01 23:06 
GeneralRe: Palm OS newcomer... Pin
Nish Nishant17-Dec-01 23:46
sitebuilderNish Nishant17-Dec-01 23:46 

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.