?
Solved

Dialog Box Size

Posted on 1998-11-24
3
Medium Priority
?
222 Views
Last Modified: 2010-04-01
How do I choose / control the size of a dialog box when I run the code which opens it ?

Thanks,
A.
0
Comment
Question by:decornez
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
AlFa earned 30 total points
ID: 1178557
You can do this in the WM_INITDIALOG message response with a call to
BOOL MoveWindow(  HWND hWnd, // handle to window
  int X,          // horizontal position  
  int Y,          // vertical position
  int nWidth,     // width  
  int nHeight,    // height
  BOOL bRepaint   // repaint flag);

0
 

Author Comment

by:decornez
ID: 1178558
AIFa,

It is the correct function, but all I had to do was :

MoveWindow(50,50,300,500); //for example

no BOOL, no HWND needed.

Not sure why. Anyway, it does not matter as long as it works.

Thanks,
A.
0
 
LVL 2

Expert Comment

by:AlFa
ID: 1178559
You are in the C++ topic, so i was not extected to give a response using MFC
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question