Click here to Skip to main content
15,921,295 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: importing from a DLL... Pin
Raphael Kindt9-Jan-03 1:19
Raphael Kindt9-Jan-03 1:19 
GeneralRe: importing from a DLL... Pin
Joan M9-Jan-03 1:29
professionalJoan M9-Jan-03 1:29 
GeneralRe: importing from a DLL... Pin
Raphael Kindt9-Jan-03 1:52
Raphael Kindt9-Jan-03 1:52 
GeneralRe: importing from a DLL... Pin
Joan M9-Jan-03 1:49
professionalJoan M9-Jan-03 1:49 
Generalsmall problem with CString And GetWindowsDirectory Pin
r i s h a b h s8-Jan-03 22:45
r i s h a b h s8-Jan-03 22:45 
GeneralRe: small problem with CString And GetWindowsDirectory Pin
Hans Ruck9-Jan-03 0:08
Hans Ruck9-Jan-03 0:08 
GeneralRe: small problem with CString And GetWindowsDirectory Pin
Hesham Amin9-Jan-03 0:41
Hesham Amin9-Jan-03 0:41 
GeneralMaximizing window in MDI Pin
Rage8-Jan-03 22:27
professionalRage8-Jan-03 22:27 
Hi !

I started yesterday to write my first MDI app (with MFC, let's get at it slowly Smile | :) ). This is a kind of text viewer, maybe editor (Yes, another one Roll eyes | :rolleyes: but i think it's a good example to start). You may say there is not much to do, but ...
Anyway, my first problem is that i'd like the child windows to be maximized when a document is opened. Currently the child window is about half the size of the screen, in the middle. Since the main frame is maximized at startup, i'd like the child win to be maximized also.

So i intercetpted the CREATESTRUCT from the PreCreateWindow in CMDIChild class, and did :

cs.style|=WS_MAXIMIZE;


But this would not change anything. I tried this in several other places, and also with ShowWindow(WS_MAXIMZED), but no way, my win is still not maximized. Confused | :confused: What's wrong ?

~RaGE();
GeneralRe: Maximizing window in MDI Pin
Hans Ruck8-Jan-03 23:48
Hans Ruck8-Jan-03 23:48 
GeneralRe: Maximizing window in MDI Pin
Rage9-Jan-03 0:49
professionalRage9-Jan-03 0:49 
GeneralRe: Maximizing window in MDI Pin
Hans Ruck9-Jan-03 3:06
Hans Ruck9-Jan-03 3:06 
GeneralRe: Maximizing window in MDI Pin
Yipeee9-Jan-03 21:09
Yipeee9-Jan-03 21:09 
GeneralScrolling in PropertyPage Pin
mzakarni8-Jan-03 22:28
mzakarni8-Jan-03 22:28 
Questioncreating OLE object in VC? Pin
E_LISE_LI8-Jan-03 21:18
E_LISE_LI8-Jan-03 21:18 
QuestionWhy this Code make the System Icon Crazy? Pin
Ivano8-Jan-03 20:59
Ivano8-Jan-03 20:59 
GeneralBitmaps merging Pin
raja hindustani8-Jan-03 20:57
raja hindustani8-Jan-03 20:57 
GeneralWTL CListView Pin
Luke Murray8-Jan-03 20:29
Luke Murray8-Jan-03 20:29 
GeneralRegarding Port Pin
San8-Jan-03 18:30
San8-Jan-03 18:30 
GeneralRe: Regarding Port Pin
xxhimanshu8-Jan-03 21:09
xxhimanshu8-Jan-03 21:09 
Generaldialogs in dll's Pin
l a u r e n8-Jan-03 18:13
l a u r e n8-Jan-03 18:13 
GeneralRe: dialogs in dll's Pin
Rage8-Jan-03 22:34
professionalRage8-Jan-03 22:34 
GeneralRe: dialogs in dll's Pin
xxhimanshu8-Jan-03 23:37
xxhimanshu8-Jan-03 23:37 
QuestionCan anyone help me about using Softice. Pin
sonshiro8-Jan-03 17:05
sonshiro8-Jan-03 17:05 
GeneralFaster mutex implementation Pin
Brian Tietz8-Jan-03 14:56
Brian Tietz8-Jan-03 14:56 
GeneralRe: Faster mutex implementation Pin
Michael Dunn8-Jan-03 15:24
sitebuilderMichael Dunn8-Jan-03 15:24 

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.