Click here to Skip to main content
15,891,951 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Can I add a menu item to the popup menu of any CEdit? Pin
ThatsAlok31-Oct-06 17:22
ThatsAlok31-Oct-06 17:22 
GeneralRe: Can I add a menu item to the popup menu of any CEdit? Pin
Hamid_RT31-Oct-06 18:15
Hamid_RT31-Oct-06 18:15 
AnswerRe: Can I add a menu item to the popup menu of any CEdit? Pin
James R. Twine31-Oct-06 5:03
James R. Twine31-Oct-06 5:03 
GeneralRe: Can I add a menu item to the popup menu of any CEdit? Pin
ThatsAlok31-Oct-06 5:09
ThatsAlok31-Oct-06 5:09 
QuestionCWinThread reading event messages [modified] Pin
edvintas31-Oct-06 4:07
edvintas31-Oct-06 4:07 
AnswerRe: CWinThread reading event messages Pin
TClarke31-Oct-06 5:59
TClarke31-Oct-06 5:59 
GeneralRe: CWinThread reading event messages [modified] Pin
edvintas31-Oct-06 6:52
edvintas31-Oct-06 6:52 
GeneralRe: CWinThread reading event messages Pin
TClarke1-Nov-06 0:27
TClarke1-Nov-06 0:27 
This line is a problem:

<br />
m_entry.hCallWnd = (HWND)Thread::m_hThread;<br />


In the file KeyHook.cpp the value hCallWnd is used in the function who's prototype is below to send a message to a window via a call to PostMessage. There is no way a thead handle will suffice in such a situation.

<br />
LRESULT CALLBACK KeyboardProc(INT nCode, WPARAM wParam, LPARAM lParam)<br />


Either, modify KeyHook.cpp to use PostThreadMessage or use a window to receive the messages.
Regarding windows, wanting an invisible app is no barrier to using a window in this instance. When you create the window call either ShowWindow or SetWindowPos to make it invisible. This will basically make the window just an easily used message loop, ideal for your purposes.

Tom
GeneralRe: CWinThread reading event messages Pin
edvintas1-Nov-06 3:03
edvintas1-Nov-06 3:03 
QuestionRounded windows Pin
Waldermort31-Oct-06 3:44
Waldermort31-Oct-06 3:44 
AnswerRe: Rounded windows Pin
ThatsAlok31-Oct-06 4:47
ThatsAlok31-Oct-06 4:47 
AnswerRe: Rounded windows Pin
Michael Dunn31-Oct-06 7:13
sitebuilderMichael Dunn31-Oct-06 7:13 
GeneralRe: Rounded windows Pin
Waldermort31-Oct-06 10:25
Waldermort31-Oct-06 10:25 
QuestionBackgound file operation monitoring Pin
TPN31-Oct-06 3:31
TPN31-Oct-06 3:31 
QuestionRe: Backgound file operation monitoring Pin
David Crow31-Oct-06 4:01
David Crow31-Oct-06 4:01 
AnswerRe: Backgound file operation monitoring Pin
ThatsAlok31-Oct-06 4:51
ThatsAlok31-Oct-06 4:51 
Questionmulti language Pin
Russell'31-Oct-06 3:27
Russell'31-Oct-06 3:27 
AnswerRe: multi language Pin
toxcct31-Oct-06 3:43
toxcct31-Oct-06 3:43 
GeneralRe: multi language Pin
Russell'31-Oct-06 5:14
Russell'31-Oct-06 5:14 
GeneralRe: multi language Pin
toxcct31-Oct-06 5:28
toxcct31-Oct-06 5:28 
QuestionCalling a Web service in VC++ Pin
Programm3r31-Oct-06 2:21
Programm3r31-Oct-06 2:21 
AnswerRe: Calling a Web service in VC++ Pin
Chris Losinger31-Oct-06 3:29
professionalChris Losinger31-Oct-06 3:29 
GeneralRe: Calling a Web service in VC++ Pin
Programm3r31-Oct-06 18:21
Programm3r31-Oct-06 18:21 
QuestionHow to add wave file to wmv file Pin
Hemant kulkarni31-Oct-06 1:36
Hemant kulkarni31-Oct-06 1:36 
AnswerRe: How to add wave file to wmv file Pin
Mark Salsbery31-Oct-06 4:10
Mark Salsbery31-Oct-06 4:10 

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.