Click here to Skip to main content
15,917,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to get the real parent of a service process Pin
Blake Miller8-Dec-05 10:12
Blake Miller8-Dec-05 10:12 
QuestionDisplay views on different screens dimension problem Pin
mikobi8-Dec-05 0:19
mikobi8-Dec-05 0:19 
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 
It really is not totally about resizing. It is more about repositioning.
Like:
int x, y;<br />
CRect rect;<br />
GetClientRect(&rect);<br />
x = rect.Width();<br />
y = rect.Height();<br />
m_Edit.SetWindowPos(NULL,(x/2)-100, (y/2)-50,0,0,SWP_NOZORDER | SWP_NOSIZE);

It would position the Edit around the center of the dialog. Of course it is not perfect, but shows how it can be done; very simple.
If you need to position a control at the right-side of the dialog, then:
x = rect.Width()-100;//actually this 100 here should be the width of the button plus some extra space.<br />
y = rect.Height()-100;//same for this one as above.<br />
m_Button.SetWindowPos(NULL,x,y,0,0,SWP_NOZORDER | SWP_NOSIZE);


this is this.
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 
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 

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.