i want to synchronize the keyboard input of two windows.that is , i have two windows(window1 and window2).window1 is the top window on the desktop,window2 is behind window1. there is a edit control on both windows. when i input char in the edit of window1.i want window2 change with window1.juse like i both input char in edit of window2. the function AttachThreadInput seems to resolve my problem, but it does not work as i expected. anyone can tell me other solutions. here i should tell that window1 and window2 are in deffrent processes.window2 is an existent third-party program. i can do nothing about it.all i can do is in window1. gucy
gucy
Posts
-
how to synchronize the input of two windows -
how to synchronize the input of two windowsi want to synchronize the keyboard input of two windows.that is , i have two windows(window1 and window2).window1 is the top window on the desktop,window2 is behind window1. there is a edit control on both windows. when i input char in the edit of window1.i want window2 change with window1.juse like i both input char in edit of window2. the function AttachThreadInput seems to resolve my problem, but it does not work as i expected. anyone can tell me other solutions. here i should tell that window1 and window2 are in deffrent processes.window2 is an existent third-party program. i can do nothing about it.all i can do is in window1. gucy
-
how to get the wm_keydown msgCMyFormview is a View in my dll.it is derived from CFormView.Why it does not respond to on_keydown message,also it does not respond to the overrided function PreTranslateMsg . gucy
-
How to support axtivex control in my mfc regular dllby the way ,i had added AfxEnableControlContainer() in my dll app. if i add activeX control using resource edit,the dialog will not show at all. if i dynamically create the control in the program. create failed. gucy
-
How to support axtivex control in my mfc regular dllwhen i create a Cwebbrowser contorl in my dll,it occur seriou error. i seem that the dll doesn't support activeX control. how can i realize webbrowser in my dll. gucy
-
mfc activeX controli'v found the control now gucy
-
mfc activeX controli don't want to use ActiveX control,i want common control. But i use vc6.0 resource editor.is there any solution? gucy
-
mfc activeX controli want to add datatime pickup activeXcontorl on the dialg in my dll. can i do like that, if can, how to realize ? gucy
-
show dialog in dllyes,if i add the macro to the second one,it still work.it does not depent on the macro. gucy
-
show dialog in dllhi, The dialog template is in dll in both of the two funcion. gucy
-
show dialog in dlli want to show a dialog in regular dll which is dynamicaly linked to mfc. the exported func is : //dynamicly extern "C" __declspec( dllexport ) void Trade1() { AFX_MANAGE_STATE(AfxGetStaticModuleState()) CDlgLogon dlg; dlg.DoModal (); } which does not work. if i set the dll staticly linked to mfc .it works well //staticly extern "C" __declspec( dllexport ) void Trade1() { CDlgLogon dlg; dlg.DoModal (); } is that means i can't use mfc in static library? gucy
-
another quesion about regular dlli create a regular dll named MyDll using MFC, i want the dll popup a dialg in the beginning of the function CMyDllApp::InitInstance() ,just as i did in my exe. but here caused serious error in wincore.cpp (line:884) BOOL CMyDllApp::InitInstance() { // TODO: Add your specialized code here and/or call the base class CDlg dlg; dlg.DoModal(); return CWinApp::InitInstance(); } who can tell me what's wrong to my program? gucy
-
how to free library by dll selfwe use freelibrary() to free library in our client program. but can we free the library by itself,if yes,how? gucy
-
regular dllCan i create singledocument template in regular dll.and use it in exe gucy
-
messagei did let mfc to do it.and i didn't change the parameter or return type. i've look up the msdn.it said the function is called when the view is first attached to the document.but my app has no document.it is a extension dll,and the view is just one of the views of the splitterwindow. Does that do something to my app? gucy
-
messageMy class relationship is: class CViewBase::CFormView {......} class CViewLogon::CViewBase {......} CViewLogon::OnInitialUpdate() {......} i want do something in func CViewLogon::OnInitialUpdate(),but the program did not execute the func at all.in other word,i can't trace into the func CViewLogon::OnInitialUpdate(). what's up to my program? gucy
-
how to show my window derived from CWndbut i can't access your email address! gucy
-
how to show my window derived from CWndthe app the a dialog based app. i clicked the button on the dialog. nothing changed. i think it would have pop out a window. Can i mail the source to you? gucy
-
how to show my window derived from CWndit do not work at all:( gucy
-
how to show my window derived from CWndi want to show my window which is derived from CWnd in the button clicked event .the following is my code void CTmp_dlgDlg::OnButton1() { RECT rect; CString str; GetWindowRect(&rect); CMyWnd *mywnd = new CMyWnd; str = AfxRegisterWndClass( 0); int ret=myWnd->Create (str,"text",WS_VISIBLE|WS_CHILD,rect,this,1234); mywnd->ShowWindow (SW_SHOW); } CMyWnd::CWnd but i can't show the window,why? gucy