Take a look at the attached picture please. I was able to create a dialog box like that but I had a really hard time trying to center everything. I was wondering if you guys could tell me an easy way to handle this. Thanks.
Take a look at the attached picture please. I was able to create a dialog box like that but I had a really hard time trying to center everything. I was wondering if you guys could tell me an easy way to handle this. Thanks.
Are you creating the dialogue box with a resource editor or are you doing it during run time by creating the controls yourself?
edit - Do the larger boxes that the controls sit in represent child windows to the main window?
i don't think most standard compilers support programmers with more than 4 red boxes - Misplaced
It is my sacred duity to stand in the path of the flood of ignorance and blatant stupidity... - quzah
Such pointless tricks ceased to be interesting or useful when we came down from the trees and started using higher level languages. - Salem
I use a resource editor.
The outer box is the dialog box itself. The other large boxes are GROUPBOXes.
Well the resource editor should have a grid view that should make everything pretty easy to center, it is WYSISWG editing after all.
If that doesn't suit your needs you could always iterate through your controls during the DialogBox creation (in your DialogProc) and use MoveWindow to center them using code.
i don't think most standard compilers support programmers with more than 4 red boxes - Misplaced
It is my sacred duity to stand in the path of the flood of ignorance and blatant stupidity... - quzah
Such pointless tricks ceased to be interesting or useful when we came down from the trees and started using higher level languages. - Salem
Hey, sorry. What I meant is that I am writing the resource file myself using Notepad