Click here to Skip to main content
16,012,223 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help me to use windows hook exactly. Pin
Viorel.18-Jun-06 23:05
Viorel.18-Jun-06 23:05 
AnswerRe: Help me to use windows hook exactly. Pin
FarPointer18-Jun-06 21:47
FarPointer18-Jun-06 21:47 
Questionurgent please slove it as quickly as possible Pin
happy_ram18-Jun-06 21:31
happy_ram18-Jun-06 21:31 
AnswerRe: urgent please slove it as quickly as possible Pin
Weiye Chen18-Jun-06 21:45
Weiye Chen18-Jun-06 21:45 
GeneralRe: urgent please slove it as quickly as possible Pin
happy_ram18-Jun-06 21:57
happy_ram18-Jun-06 21:57 
GeneralRe: urgent please slove it as quickly as possible Pin
Weiye Chen18-Jun-06 22:12
Weiye Chen18-Jun-06 22:12 
GeneralRe: urgent please slove it as quickly as possible Pin
happy_ram18-Jun-06 22:14
happy_ram18-Jun-06 22:14 
GeneralRe: urgent please slove it as quickly as possible Pin
Weiye Chen18-Jun-06 22:24
Weiye Chen18-Jun-06 22:24 
ScreenToClient(...) takes 2 parameters, first one is a handle to your window, the second is your point. Since you are calling this in your child window, then you have to call GetParent() to get the handle to your parent window and pass it into ScreenToClient(...). e.g.

GetCursorPos(&cp1);
HWND hParentWnd = GetParent(/* Handle to your child window */);
ScreenToClient(hParentWnd, &cp1);


GeneralRe: urgent please slove it as quickly as possible Pin
Mahesh Kulkarni18-Jun-06 22:47
Mahesh Kulkarni18-Jun-06 22:47 
GeneralRe: urgent please slove it as quickly as possible Pin
happy_ram18-Jun-06 22:49
happy_ram18-Jun-06 22:49 
GeneralRe: urgent please slove it as quickly as possible Pin
Weiye Chen18-Jun-06 22:50
Weiye Chen18-Jun-06 22:50 
GeneralRe: urgent please slove it as quickly as possible Pin
happy_ram18-Jun-06 23:03
happy_ram18-Jun-06 23:03 
GeneralRe: urgent please slove it as quickly as possible Pin
Weiye Chen18-Jun-06 23:08
Weiye Chen18-Jun-06 23:08 
GeneralRe: urgent please slove it as quickly as possible Pin
happy_ram18-Jun-06 23:11
happy_ram18-Jun-06 23:11 
GeneralRe: urgent please slove it as quickly as possible Pin
Weiye Chen18-Jun-06 23:17
Weiye Chen18-Jun-06 23:17 
GeneralRe: urgent please slove it as quickly as possible Pin
happy_ram18-Jun-06 23:23
happy_ram18-Jun-06 23:23 
GeneralRe: urgent please slove it as quickly as possible Pin
Weiye Chen18-Jun-06 23:34
Weiye Chen18-Jun-06 23:34 
GeneralRe: urgent please slove it as quickly as possible [modified] Pin
happy_ram19-Jun-06 0:39
happy_ram19-Jun-06 0:39 
GeneralRe: urgent please slove it as quickly as possible Pin
Weiye Chen19-Jun-06 1:57
Weiye Chen19-Jun-06 1:57 
GeneralRe: urgent please slove it as quickly as possible Pin
happy_ram19-Jun-06 2:02
happy_ram19-Jun-06 2:02 
QuestionApplication Communications Pin
HakunaMatada18-Jun-06 21:27
HakunaMatada18-Jun-06 21:27 
AnswerRe: Application Communications Pin
Naveen18-Jun-06 21:35
Naveen18-Jun-06 21:35 
AnswerRe: Application Communications Pin
kakan18-Jun-06 21:57
professionalkakan18-Jun-06 21:57 
AnswerRe: Application Communications Pin
ThatsAlok18-Jun-06 22:34
ThatsAlok18-Jun-06 22:34 
AnswerRe: Application Communications Pin
David Crow19-Jun-06 3:09
David Crow19-Jun-06 3:09 

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.