Get size of dialog box 
Author Message
 Get size of dialog box

Hey,

Does anyone know how I can get the size of a dialog box?  I need to be able
to find out the size of a dialog box created with MFC.  I'm mostly familiar
with DOS C++, so I'm a newb when it comes to Windows programming.

I'm guessing it has something to do with the CClientDC class, but I could be
wrong.  Any help would be appreciated.



Fri, 27 Aug 2004 09:40:50 GMT  
 Get size of dialog box

Quote:

> Hey,

> Does anyone know how I can get the size of a dialog box?  I need to be able
> to find out the size of a dialog box created with MFC.  I'm mostly familiar
> with DOS C++, so I'm a newb when it comes to Windows programming.

> I'm guessing it has something to do with the CClientDC class, but I could be
> wrong.  Any help would be appreciated.

The size (and position) of any window, including a dialog, is returned
by GetWindowRect.

--
Scott McPhillips [VC++ MVP]



Fri, 27 Aug 2004 10:02:42 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Getting Dialog or FormView sizes from Resources

2. Getting Dialog or FormView sizes from Resources

3. dialog size in evc++ dialog editor not the same as size in pixels on device

4. Sizing Dialog Box

5. How to change the color,size,font of text in a dialog box

6. Dialog box sizing

7. Sizing of controls in Dialog Box

8. Getting Handle from a PicBox on a Dialog Box

9. How to refresh my dialog box whenever it gets focus after changes in Registry

10. Getting a CMap from Doc to a Dialog box

11. font size of dialog box

12. multiple dialog box sizes

 

 
Powered by phpBB® Forum Software