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

C / C++ / MFC

 
AnswerRe: Display views on different screens dimension problem Pin
khan++8-Dec-05 0:38
khan++8-Dec-05 0:38 
GeneralRe: Display views on different screens dimension problem Pin
mikobi8-Dec-05 1:00
mikobi8-Dec-05 1:00 
GeneralRe: Display views on different screens dimension problem Pin
Cedric Moonen8-Dec-05 1:24
Cedric Moonen8-Dec-05 1:24 
GeneralRe: Display views on different screens dimension problem Pin
khan++8-Dec-05 1:32
khan++8-Dec-05 1:32 
GeneralRe: Display views on different screens dimension problem Pin
mikobi8-Dec-05 2:06
mikobi8-Dec-05 2:06 
GeneralRe: Display views on different screens dimension problem Pin
khan++8-Dec-05 2:19
khan++8-Dec-05 2:19 
GeneralRe: Display views on different screens dimension problem Pin
mikobi8-Dec-05 2:43
mikobi8-Dec-05 2:43 
GeneralRe: Display views on different screens dimension problem Pin
khan++8-Dec-05 2:57
khan++8-Dec-05 2:57 
I don't think the control's original position will be useful. You could just drag and drop all the controls on the dialog, and then position them in the OnSize() handler. See my previous post to position a button at the right-bottom corner of the dialog. Just forget the original position of the controls; reposition them where you like them; where they look good. (At runtime)

One important thing is that you must wait for the OnInitDialog() to be called before you reposition the controls, because OnSize() gets called before the controls have been associated with their variables. At the end of OnInitDialog(), you can explicitly send a resize message like: SendMessage(WM_SIZE);

You can keep a class variable like: BOOL m_bInitialized; make it false in the constructor, and make it true in OnInitDialog(). In OnSize(), check if it is true, then do the positioning work.


this is this.
QuestionListCtrl containing tree control Pin
doubts.vc8-Dec-05 0:06
doubts.vc8-Dec-05 0:06 
QuestionMSCS Cluster Question Pin
Sandeep Shetty7-Dec-05 23:36
Sandeep Shetty7-Dec-05 23:36 
QuestionHow to display a set of BYTE on the screen? Pin
Ming Luo7-Dec-05 23:01
Ming Luo7-Dec-05 23:01 
AnswerRe: How to display a set of BYTE on the screen? Pin
Cedric Moonen7-Dec-05 23:13
Cedric Moonen7-Dec-05 23:13 
GeneralRe: How to display a set of BYTE on the screen? Pin
Ming Luo7-Dec-05 23:54
Ming Luo7-Dec-05 23:54 
AnswerRe: How to display a set of BYTE on the screen? Pin
Ming Luo8-Dec-05 0:30
Ming Luo8-Dec-05 0:30 
QuestionRe: How to display a set of BYTE on the screen? Pin
David Crow8-Dec-05 1:59
David Crow8-Dec-05 1:59 
AnswerRe: How to display a set of BYTE on the screen? Pin
Ming Luo8-Dec-05 3:01
Ming Luo8-Dec-05 3:01 
GeneralRe: How to display a set of BYTE on the screen? Pin
David Crow8-Dec-05 3:31
David Crow8-Dec-05 3:31 
QuestionWhy the raw ip do not work in Windows XP ? Pin
rushing7-Dec-05 22:58
rushing7-Dec-05 22:58 
AnswerRe: Why the raw ip do not work in Windows XP ? Pin
Graham Bradshaw8-Dec-05 0:09
Graham Bradshaw8-Dec-05 0:09 
QuestionError Compiling Gina Pin
sunit57-Dec-05 20:33
sunit57-Dec-05 20:33 
QuestionRe: Error Compiling Gina Pin
sunit57-Dec-05 20:36
sunit57-Dec-05 20:36 
AnswerRe: Error Compiling Gina Pin
kakan7-Dec-05 21:23
professionalkakan7-Dec-05 21:23 
GeneralRe: Error Compiling Gina Pin
sunit57-Dec-05 22:11
sunit57-Dec-05 22:11 
GeneralRe: Error Compiling Gina Pin
kakan8-Dec-05 0:59
professionalkakan8-Dec-05 0:59 
GeneralRe: Error Compiling Gina Pin
sunit58-Dec-05 5:14
sunit58-Dec-05 5:14 

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.