Maximizing a dialog box 
Author Message
 Maximizing a dialog box

I have a dialog box that has the minimize and maximize
buttons.  My dialog box has a web browser activeX
control.  The dialog box starts up with the defualt size
and the web browser control fits that box perfectly, but
once I maximize the dialog box, the window maximizes but
the control does not.  Is there away to do it so that if I
maximize the window I maximize everything in it?


Sun, 20 Feb 2005 04:03:30 GMT  
 Maximizing a dialog box

    You need to handle WM_SYSCOMMAND for the Dialog. If wParam ==
SC_MAXIMIZE, then you need to re-size your activeX control object.

--
Cheers
Check Abdoul
----------------


Quote:
> I have a dialog box that has the minimize and maximize
> buttons.  My dialog box has a web browser activeX
> control.  The dialog box starts up with the defualt size
> and the web browser control fits that box perfectly, but
> once I maximize the dialog box, the window maximizes but
> the control does not.  Is there away to do it so that if I
> maximize the window I maximize everything in it?



Sun, 20 Feb 2005 04:27:46 GMT  
 Maximizing a dialog box
Handle WM_SIZE message, manually resize the control to fit.
--
With best wishes,
    Igor Tandetnik

"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken


Quote:
> I have a dialog box that has the minimize and maximize
> buttons.  My dialog box has a web browser activeX
> control.  The dialog box starts up with the defualt size
> and the web browser control fits that box perfectly, but
> once I maximize the dialog box, the window maximizes but
> the control does not.  Is there away to do it so that if I
> maximize the window I maximize everything in it?



Sun, 20 Feb 2005 04:29:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Maximize a dialog box?

2. How to maximize a dialog box?

3. Maximize dialog box (CDialog)??

4. Maximize Dialog Box on Startup: Need help

5. Maximize, maximize and more maximize...

6. Modeless dialog box together with modal dialog box

7. activating a button on a dialog box from a dialog box

8. Dialog box in a dialog box

9. transfer data from one dialog box to another dialog box

10. PBM: Message box not displayed after main dialog box is closed in MFC dialog-based app

11. set an arbitrary printer driver in print dialog box without showing the print dialog box

12. how to set an arbitrary printer driver in print dialog box without showing the dialog box

 

 
Powered by phpBB® Forum Software