January 19th, 2013, 09:12 AM
How to call Dialog window (formed as resource) from a .DLL
Is there some document, that describe the sequence of actions, that result in displaying of a Dialog Window from a .DLL.
One important detail - the Dialog Window is created via resource/toolbox inteface.
Below is code from some example (which works), that displays simple window (with client area inside it).
In this code the window class is ctreated inside of application class.
Here is extract from application class:
Below is extract from new .DLL application class, which doesn't work (resource IDD_FORMVIEW, associated with class CPixie3_DLG in't displayed).
class CMyWindow : public CFrameWnd
Create(NULL, L"MyWindow", WS_VISIBLE, CRect(0,0,200,200));
cs = new CStatic();
cs->Create(L"AAAAA", WS_CHILD|WS_VISIBLE|SS_CENTER, CRect(50, 80, 150, 150), this);
m_pMainWnd = new CMyWindow();
It's shorter, than previous one, as CPixie3_DLG class is already created.
Where is my mistake ?
m_pMainWnd = new CPixie3_DLG();
Thanks in advance.
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!