dialog
-
-
Hello In MFC of VC++6.0, I write a dialog application. I have created a modeless dialog from main dialog. Could you please give me specific instructions to change size of modeless dialog when I get the figures up to date from main dialog?
Infomation
Hi, you can use MoveWindow function for changing the size. Regards Velayudhan
-
Hello In MFC of VC++6.0, I write a dialog application. I have created a modeless dialog from main dialog. Could you please give me specific instructions to change size of modeless dialog when I get the figures up to date from main dialog?
Infomation
You can also use the SetWindowPos API to change the window size run time.
The secret of life is not enjoyment but education through experience. - Swami Vivekananda.
-
Hello In MFC of VC++6.0, I write a dialog application. I have created a modeless dialog from main dialog. Could you please give me specific instructions to change size of modeless dialog when I get the figures up to date from main dialog?
Infomation
If you're trying to set the size of the window based on the content, you can use AdjustWindowRect or AdjustWindowRectEx to calculate the size of the new window based on the desired client rectangle. These functions will convert your client rectangle into a window rectangle, which takes into account title bars, borders, etc. wich you then pass to the MoveWindow or SetWindowPos functions.
- S 50 cups of coffee and you know it's on!