Click here to Skip to main content
15,920,708 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralAppWizard, ... no limit to the torment it inflicts. Pin
WREY26-Sep-03 11:18
WREY26-Sep-03 11:18 
GeneralRe: AppWizard, ... no limit to the torment it inflicts. Pin
Joe Woodbury26-Sep-03 12:08
professionalJoe Woodbury26-Sep-03 12:08 
GeneralRe: AppWizard, ... no limit to the torment it inflicts. Pin
WREY26-Sep-03 13:04
WREY26-Sep-03 13:04 
GeneralRe: AppWizard, ... no limit to the torment it inflicts. Pin
Joe Woodbury26-Sep-03 13:16
professionalJoe Woodbury26-Sep-03 13:16 
GeneralDialog not doing MoveWindow right Pin
ns26-Sep-03 10:39
ns26-Sep-03 10:39 
GeneralRe: Dialog not doing MoveWindow right Pin
Ravi Bhavnani26-Sep-03 12:46
professionalRavi Bhavnani26-Sep-03 12:46 
GeneralRe: Dialog not doing MoveWindow right Pin
ns29-Sep-03 3:13
ns29-Sep-03 3:13 
GeneralRe: Dialog not doing MoveWindow right Pin
Ravi Bhavnani29-Sep-03 3:47
professionalRavi Bhavnani29-Sep-03 3:47 
ns wrote:
I mean that the dialog comes up weird even though at design time it looks perfect.

Yes, that makes sense. By calling MoveWindow() you're increasing the dialog's width and height, thereby adding a bunch of white space to the dialog's right and bottom.

If you want the dialog's controls to be centered after you call MoveWindow(), you need to write an OnSize() handler that repositions each control by (delta_x/2, delta_y/2). You'd need to add logic to compute the change in width and height (i.e. delta_x and delta_y). There are quite a few dialog resizing layout classes at CP that will do this for you. I can also send you my own (unpublished) one if you like.

/ravi

Let's put "civil" back in "civilization"
Home | Articles | Freeware | Music
ravib@ravib.com

GeneralWhat's wrong with this: Pin
jimNLX26-Sep-03 10:34
jimNLX26-Sep-03 10:34 
GeneralRe: What's wrong with this: Pin
David Crow26-Sep-03 10:35
David Crow26-Sep-03 10:35 
GeneralRe: What's wrong with this: Pin
jimNLX26-Sep-03 10:39
jimNLX26-Sep-03 10:39 
GeneralRe: What's wrong with this: Pin
David Crow26-Sep-03 10:43
David Crow26-Sep-03 10:43 
GeneralRe: What's wrong with this: Pin
jimNLX29-Sep-03 7:55
jimNLX29-Sep-03 7:55 
Questionany way to make voices in c or c++? Pin
colin2126-Sep-03 9:01
colin2126-Sep-03 9:01 
AnswerRe: any way to make voices in c or c++? Pin
Ravi Bhavnani26-Sep-03 9:06
professionalRavi Bhavnani26-Sep-03 9:06 
AnswerRe: OT Pin
Chris Meech26-Sep-03 9:42
Chris Meech26-Sep-03 9:42 
GeneralSuggestion. Pin
WREY26-Sep-03 10:41
WREY26-Sep-03 10:41 
GeneralRe: Suggestion. Pin
Terry O'Nolley27-Sep-03 8:19
Terry O'Nolley27-Sep-03 8:19 
GeneralRe: Suggestion. Pin
WREY27-Sep-03 9:24
WREY27-Sep-03 9:24 
GeneralRe: Suggestion. Pin
Terry O'Nolley27-Sep-03 9:45
Terry O'Nolley27-Sep-03 9:45 
GeneralRe: Suggestion. Pin
WREY27-Sep-03 10:18
WREY27-Sep-03 10:18 
GeneralRe: Suggestion. Pin
Terry O'Nolley27-Sep-03 11:14
Terry O'Nolley27-Sep-03 11:14 
GeneralRe: Suggestion. Pin
WREY27-Sep-03 23:51
WREY27-Sep-03 23:51 
GeneralRe: Suggestion. Pin
Terry O'Nolley28-Sep-03 4:15
Terry O'Nolley28-Sep-03 4:15 
GeneralRe: Suggestion. Pin
WREY28-Sep-03 8:19
WREY28-Sep-03 8:19 

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.