ATL / WTL / STL
I'm trying to use ATL(no mfc support) to develop a activex component used in IE, and I want to design UI like common windows including menu, view window and status bar, but all article I searched from web always use dialog style, no related article for my problem.
Also, I have the code generated by wizard, Within my com component, I have the code block below:
also, the OnCreate code is below:
LRESULT OnCreate(UINT , WPARAM , LPARAM , BOOL& )
rc.right -= rc.left;
rc.bottom -= rc.top;
rc.top = rc.left = 0;
My idea is to replace the
m_ctlStatic.Create(m_hWnd, rc);with my own windows create function and add menu, code is below:
m_ctlStatic.Create(m_hWnd, rc, _T("hello"), WS_CHILD | WS_VISIBLE | ES_MULTILINE | ES_AUTOVSCROLL);
hmenu = LoadMenu(g_hModule,MAKEINTRESOURCE(IDR_MENU1));
It doesn't work at all, and also it jump to base method which display the "ALT 10.0" text.
how to solve this problem, thanks in advance.
General News Suggestion Question Bug Answer Joke Praise Rant Admin
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.