Click here to Skip to main content
15,912,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: RegisterWindowMessage vs. WM_USER Pin
Tim Smith7-Nov-02 2:44
Tim Smith7-Nov-02 2:44 
GeneralRe: RegisterWindowMessage vs. WM_USER Pin
Alexandru Savescu7-Nov-02 2:48
Alexandru Savescu7-Nov-02 2:48 
GeneralRe: RegisterWindowMessage vs. WM_USER Pin
Alexinuk7-Nov-02 2:53
Alexinuk7-Nov-02 2:53 
GeneralComplex String Comparison Pin
James Spibey7-Nov-02 0:15
James Spibey7-Nov-02 0:15 
GeneralRe: Complex String Comparison Pin
Daniel Turini7-Nov-02 0:23
Daniel Turini7-Nov-02 0:23 
GeneralRe: Complex String Comparison Pin
James Spibey7-Nov-02 0:42
James Spibey7-Nov-02 0:42 
GeneralRe: Complex String Comparison Pin
jhwurmbach7-Nov-02 1:35
jhwurmbach7-Nov-02 1:35 
GeneralHelp! about PreTranslateMessage Pin
Simon.W7-Nov-02 0:05
Simon.W7-Nov-02 0:05 
Hi:

I meet a problem, it has puzzled me for a long time. I create a COM dll which support MFC, several

methods was exposured. The implement code of two methods was shown as follow:

STDMETHODIMP CMyComObj::OnConfiguration(long iReserved, BOOL *pbSuccess)<br />
{<br />
	AFX_MANAGE_STATE(AfxGetStaticModuleState())<br />
	<br />
	CMyCfgDlg dlg;<br />
	int rtn = dlg.DoModal();<br />
	*pbSuccess = (rtn == IDOK) ? TRUE : FALSE;<br />
	return S_OK;<br />
}<br />
 <br />
STDMETHODIMP CMyComObj::ShowUIFace(long hParentWnd)<br />
{<br />
	AFX_MANAGE_STATE(AfxGetStaticModuleState())<br />
	<br />
//	declare in header file as CMyUIDlg *pdlg;<br />
	pdlg = new CMyUIDlg();<br />
	if(pdlg != NULL)<br />
	{<br />
		pdlg->Create(ID_MYUIDLG,CWnd::Fromhandle((HWND)hParentWnd));//Create success<br />
	}<br />
	*pbSuccess = (rtn == IDOK) ? TRUE : FALSE;<br />
	return S_OK;<br />
}<br />

The problem is in the first method call, the dialog shown normal and I can use TAB switch focus from

one control to another control. When I use the second method call, the dialog shown normal but can't

use TAB to switch focus(It does not take effect). The reason is virtual function PreTranslateMessage

was not be processed, What's wrong? Please help me!!!

I am seeking...
For what?
Why did you ask me for what? I don't know!
GeneralRe: Help! about PreTranslateMessage Pin
includeh107-Nov-02 3:09
includeh107-Nov-02 3:09 
GeneralRe: Help! about PreTranslateMessage Pin
Simon.W9-Nov-02 0:23
Simon.W9-Nov-02 0:23 
GeneralSELECT ... FOR XML AUTO Pin
Alexandru Savescu6-Nov-02 23:37
Alexandru Savescu6-Nov-02 23:37 
GeneralCListCtrl problem! Pin
Daniel Strigl6-Nov-02 23:03
Daniel Strigl6-Nov-02 23:03 
GeneralRe: CListCtrl problem! Pin
KarstenK7-Nov-02 0:11
mveKarstenK7-Nov-02 0:11 
GeneralRe: CListCtrl problem! Pin
Tim Ranker7-Nov-02 3:50
Tim Ranker7-Nov-02 3:50 
GeneralRe: CListCtrl problem! Pin
Daniel Strigl7-Nov-02 3:58
Daniel Strigl7-Nov-02 3:58 
GeneralMore than one window Pin
mzakarni6-Nov-02 22:47
mzakarni6-Nov-02 22:47 
GeneralRe: More than one window Pin
Christian Graus6-Nov-02 22:53
protectorChristian Graus6-Nov-02 22:53 
GeneralRe: More than one window Pin
KarstenK7-Nov-02 0:17
mveKarstenK7-Nov-02 0:17 
GeneralRe: More than one window Pin
mzakarni7-Nov-02 1:08
mzakarni7-Nov-02 1:08 
Generalchange dll !!!!! Pin
maxyi6-Nov-02 22:35
maxyi6-Nov-02 22:35 
GeneralRe: change dll !!!!! Pin
Christian Graus6-Nov-02 22:40
protectorChristian Graus6-Nov-02 22:40 
GeneralRe: change dll !!!!! Pin
maxyi7-Nov-02 1:45
maxyi7-Nov-02 1:45 
GeneralRe: change dll !!!!! Pin
Jon Hulatt6-Nov-02 23:28
Jon Hulatt6-Nov-02 23:28 
GeneralRe: change dll !!!!! Pin
maxyi7-Nov-02 1:48
maxyi7-Nov-02 1:48 
GeneralMessage cross threads Pin
stevenson6-Nov-02 22:19
stevenson6-Nov-02 22:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.