I do not want to set the size, I want to GET the size before I create
the dialog.
Please see George Lozovoy's suggestion.
Erwin Brandenberger
Quote:
> ----- Original Message -----
> Newsgroups: microsoft.public.vc,microsoft.public.vc.mfc
> Sent: Tuesday, December 29, 1998 10:52 PM
> Subject: get dialog box size
> >How do i get the size of a dialog box (for CDialog or CFormView) before
> > the dialog is created ?
> >Erwin Brandenberger
> Hi... Erwin Brandenberger... (i'm use english very well.. sorry..)
> U Use PreCreateWindow(CREATESTRUCT& cs) virtual. function
> two case working.. one is CDialog base program another CFormView base
> Program
> - case CDialog
> this example make dialog of size 100*100
> BOOL CTestDlg::PreCreateWindow(CREATESTRUCT& cs)
> {
> //cs.cx --> Dialog width,
> //cs.cy --> Dialog Height
> cs.cx = 100;
> cs.cy = 100;
> return CDialog::PreCreateWindow(cs);
> }
> - case CFormView
> if use CFormView then editing CMainFrame
> this example make FrameWnd of size 100*100
> BOOL CTestFrm::PreCreateWindow(CREATESTRUCT& cs)
> {
> //cs.cx --> Frame window width,
> //cs.cy --> Frame window Height
> cs.cx = 100;
> cs.cy = 100;
> return CMainFrame::PreCreateWindow(cs);
> }
> ---- written by Judoryung from South korea...
--
+---------------------------------------------------------------------------+
| Erwin Brandenberger http://www.ErwinBrandenberger.ch |
| Human Engineering AG |
| Schoenenbergerweg 9a, 8405 Winterthur-Seen , SWITZERLAND |
| CALL: ++41 (0)52-238 07 39 FAX: ++41 (0)52-232 06 20 |
+---------------------------------------------------------------------------+