Click here to Skip to main content
15,895,192 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Mutex blocks CreateFileMapping Pin
Code-o-mat28-Sep-10 1:11
Code-o-mat28-Sep-10 1:11 
AnswerRe: Mutex blocks CreateFileMapping PinPopular
«_Superman_»28-Sep-10 0:05
professional«_Superman_»28-Sep-10 0:05 
AnswerRe: Mutex blocks CreateFileMapping Pin
Luc Pattyn28-Sep-10 3:37
sitebuilderLuc Pattyn28-Sep-10 3:37 
GeneralRe: Mutex blocks CreateFileMapping Pin
Maxwell Chen28-Sep-10 4:31
Maxwell Chen28-Sep-10 4:31 
GeneralRe: Mutex blocks CreateFileMapping Pin
Luc Pattyn28-Sep-10 4:41
sitebuilderLuc Pattyn28-Sep-10 4:41 
GeneralRe: Mutex blocks CreateFileMapping Pin
Maxwell Chen28-Sep-10 4:44
Maxwell Chen28-Sep-10 4:44 
GeneralRe: Mutex blocks CreateFileMapping Pin
Blake Miller28-Sep-10 11:05
Blake Miller28-Sep-10 11:05 
QuestionGet mouse clicked component Pin
yccheok27-Sep-10 20:42
yccheok27-Sep-10 20:42 
Current, I have a parent CWnd, which is displaying many other child CWnds. All my message handling job are being done in parent CWnd, as I do not have access to child CWnds' code.

I wish to know which child CWnds is being clicked.

I can detect the right click

afx_msg void OnContextMenu(
   CWnd* pWnd,
   CPoint pos 
);


pWnd will be the clicked child window.

However, how about left click? I know I can get the mouse coordinate, and perform some calculation accordingly to iterate through see which child CWnds falll into the point. However, I just don't want to go through all this. I which I can have something like.

CWnd* childWind = mouseEvent.getParent();

AnswerRe: Get mouse clicked component Pin
Cool_Dev27-Sep-10 22:25
Cool_Dev27-Sep-10 22:25 
AnswerRe: Get mouse clicked component Pin
Eugen Podsypalnikov27-Sep-10 23:27
Eugen Podsypalnikov27-Sep-10 23:27 
QuestionRe: Get mouse clicked component Pin
Cool_Dev28-Sep-10 0:54
Cool_Dev28-Sep-10 0:54 
AnswerRe: Get mouse clicked component Pin
Eugen Podsypalnikov28-Sep-10 1:21
Eugen Podsypalnikov28-Sep-10 1:21 
GeneralRe: Get mouse clicked component Pin
Cool_Dev28-Sep-10 4:18
Cool_Dev28-Sep-10 4:18 
QuestionWho will write the game Trojans Pin
Mr_Leon27-Sep-10 20:33
Mr_Leon27-Sep-10 20:33 
AnswerRe: Who will write the game Trojans Pin
sashoalm27-Sep-10 21:02
sashoalm27-Sep-10 21:02 
AnswerRe: Who will write the game Trojans Pin
Richard MacCutchan27-Sep-10 21:56
mveRichard MacCutchan27-Sep-10 21:56 
AnswerRe: Who will write the game Trojans Pin
Niklas L27-Sep-10 22:02
Niklas L27-Sep-10 22:02 
AnswerRe: Who will write the game Trojans Pin
bleedingfingers27-Sep-10 22:22
bleedingfingers27-Sep-10 22:22 
AnswerRe: Who will write the game Trojans Pin
yu-jian28-Sep-10 15:35
yu-jian28-Sep-10 15:35 
QuestionAnybody interested in VC/MFC or HOOK? I want to be friend with you. Pin
Mr_Leon27-Sep-10 19:43
Mr_Leon27-Sep-10 19:43 
AnswerRe: Anybody interested in VC/MFC or HOOK? I want to be friend with you. Pin
yu-jian28-Sep-10 15:34
yu-jian28-Sep-10 15:34 
AnswerRe: Anybody interested in VC/MFC or HOOK? I want to be friend with you. Pin
Support_Team29-Nov-10 23:54
Support_Team29-Nov-10 23:54 
QuestionRendering GIF, JPEG, Icon, or Bitmap Files with OleLoadPicture Pin
Kamiao27-Sep-10 16:56
Kamiao27-Sep-10 16:56 
AnswerRe: Rendering GIF, JPEG, Icon, or Bitmap Files with OleLoadPicture Pin
Sameerkumar Namdeo27-Sep-10 17:26
Sameerkumar Namdeo27-Sep-10 17:26 
GeneralRe: Rendering GIF, JPEG, Icon, or Bitmap Files with OleLoadPicture Pin
Cool_Dev27-Sep-10 17:27
Cool_Dev27-Sep-10 17:27 

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.