| Clearner1 (38) | |
| it is known that DialogBoxParam function work after you pass the ID control of window as a parameter but there is no ID control of window in visual studio .......need help??? (i know i can use createwindow function and use handles instead but it wont be accurate ) | |
|
|
|
| andywestken (1964) | |
|
Out of interest, what won't be accurate? (about your windows?) Andy | |
|
Last edited on
|
|
| Clearner1 (38) | |
| the shape of window and the position of buttons | |
|
|
|
| EssGeEich (1007) | |
|
You need to create a resource. Create a Dialog resource. In the order, their default IDs are: IDD_DIALOG1, IDD_DIALOG2... (You can click on the window in the editor and check the Properties tab). In your inclusion file (stdafx.h or main.cpp depending on your programming style) you also need to include a new header you will find in the Solution Explorer. Then, when calling DialogBoxParam, you need to pass MAKEINTRESOURCE( /* Dialog ID Here */ ) as the id.
| |
|
|
|
| andywestken (1964) | ||
|
Note that Visual C++ Express editions don't support resource editing; you've got to pay for that! Or use a separate resource editor. e.g. ResEdit http://www.resedit.net/
Andy | ||
|
Last edited on
|
||
| Clearner1 (38) | |
| so that is why .... thank you all....it was my biggest proplem | |
|
|
|