Click here to Skip to main content
15,913,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: initialization of code in CWinApp Pin
jhwurmbach13-Aug-03 3:29
jhwurmbach13-Aug-03 3:29 
GeneralRe: initialization of code in CWinApp Pin
pdunn14-Aug-03 4:22
pdunn14-Aug-03 4:22 
GeneralRe: initialization of code in CWinApp Pin
jhwurmbach14-Aug-03 4:38
jhwurmbach14-Aug-03 4:38 
GeneralNetwork Discovery & Remote execute Pin
maranv13-Aug-03 0:06
maranv13-Aug-03 0:06 
GeneralRe: Network Discovery & Remote execute Pin
Steve S13-Aug-03 0:10
Steve S13-Aug-03 0:10 
GeneralRe: Network Discovery & Remote execute Pin
maranv17-Aug-03 16:05
maranv17-Aug-03 16:05 
GeneralRe: Network Discovery & Remote execute Pin
David Crow13-Aug-03 5:40
David Crow13-Aug-03 5:40 
GeneralStandalone in place CEdit - Thanks to all Pin
Neville Franks12-Aug-03 23:43
Neville Franks12-Aug-03 23:43 
Thanks to everyone who helped with my CEdit problem yesterday. To recap a CEdit which isn't in a dialog sends messages like WM_KEYDOWN to its parent. This probably happens in a dialog as well, but you don't see it as the dialog msg handler sorts things out.

In the end I had two problems. Clicking on the edit control resulted in a WM_LBUTTONDOWN going to the parent window, which closed the edit control. This turned out to be a problem with WM_MOUSEACTIVATE being sent to the parent, which caused it to active and thus get the WM_LBUTTONDOWN. So preventing WM_MOUSEACTIVATE being sent to the parent window solved my mouse click problems.

Second, my parent window has a PreTranslateMessage() function which handles WM_KEYDOWN etc. The problem here was that I wasn't testing if the msg.hwnd was the same as my parent hwnd. Adding that test resolved my kbd problems.

So I now have a stand alone edit control, which can work outside of a dialog. If anyone needs anymore info let me know. Thanks again to you all for your efforts.

Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com
GeneralRe: Standalone in place CEdit - Thanks to all Pin
jhwurmbach13-Aug-03 2:31
jhwurmbach13-Aug-03 2:31 
GeneralRe: Standalone in place CEdit - Thanks to all Pin
Neville Franks13-Aug-03 6:35
Neville Franks13-Aug-03 6:35 
GeneralSorting Utility Pin
RChin12-Aug-03 23:32
RChin12-Aug-03 23:32 
GeneralNeed more details... Pin
Kochise13-Aug-03 0:23
Kochise13-Aug-03 0:23 
GeneralRe: Need more details... Pin
RChin13-Aug-03 0:31
RChin13-Aug-03 0:31 
GeneralRe: Need more details... Pin
Steve S13-Aug-03 0:43
Steve S13-Aug-03 0:43 
GeneralCreate() function. Pin
Neha12-Aug-03 22:16
Neha12-Aug-03 22:16 
GeneralRe: Create() function. Pin
jhwurmbach13-Aug-03 2:45
jhwurmbach13-Aug-03 2:45 
GeneralSave Image Pin
henli12-Aug-03 21:43
henli12-Aug-03 21:43 
GeneralRefresh problem Pin
Neha12-Aug-03 20:30
Neha12-Aug-03 20:30 
GeneralRe: Refresh problem Pin
Jörgen Sigvardsson12-Aug-03 22:56
Jörgen Sigvardsson12-Aug-03 22:56 
QuestionHow to make Installation Program to load ATL Com Add-in(.dll) with MS Outlook ? Pin
Atif Bashir12-Aug-03 20:15
Atif Bashir12-Aug-03 20:15 
GeneralMFC SeriesCollection question Pin
Mardigin12-Aug-03 19:44
Mardigin12-Aug-03 19:44 
GeneralRe: MFC SeriesCollection question Pin
Mardigin12-Aug-03 20:23
Mardigin12-Aug-03 20:23 
GeneralRe: MFC SeriesCollection question Pin
Ryan Binns13-Aug-03 0:35
Ryan Binns13-Aug-03 0:35 
GeneralDlls:Could you help me ? (I come from china .) Pin
Hellin12-Aug-03 19:21
Hellin12-Aug-03 19:21 
GeneralRe: Dlls:Could you help me ? (I come from china .) Pin
Hellin12-Aug-03 20:04
Hellin12-Aug-03 20:04 

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.