As I am just starting out in the world of C++ I have encountered a problem. I use Visual C++.
I create a dialog in the resource editor and create a class for it. When pressing a button I am to show the dialog with:
dlg.m_Amount = 0;
dlg.m_Price = 0;
The problem I have is how to position the dialog. I would like to position the dialog in the top left corner of the screen. I have tried overriding the CDialog based class with the virtual fuction 'PreCreateWindow' but apparently this function is not used when showing a dialog this way.
How can I position a dialog that I want to show?