Click here to Skip to main content
15,897,187 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: why is the size of empty class is 1byte in dos/windows 64bit version? Pin
Saurabh.Garg5-Jun-08 18:57
Saurabh.Garg5-Jun-08 18:57 
QuestionRe: why is the size of empty class is 1byte in dos/windows 64bit version? Pin
Super Hornet5-Jun-08 19:53
Super Hornet5-Jun-08 19:53 
AnswerRe: why is the size of empty class is 1byte in dos/windows 64bit version? Pin
Saurabh.Garg5-Jun-08 20:00
Saurabh.Garg5-Jun-08 20:00 
QuestionRe: why is the size of empty class is 1byte in dos/windows 64bit version? Pin
Super Hornet5-Jun-08 20:10
Super Hornet5-Jun-08 20:10 
AnswerRe: why is the size of empty class is 1byte in dos/windows 64bit version? Pin
SandipG 5-Jun-08 20:19
SandipG 5-Jun-08 20:19 
AnswerRe: why is the size of empty class is 1byte in dos/windows 64bit version? Pin
Dan5-Jun-08 20:21
Dan5-Jun-08 20:21 
Question[Message Deleted] Pin
Kwanalouie5-Jun-08 17:33
Kwanalouie5-Jun-08 17:33 
AnswerRe: Help with mouse coordinates [modified] Pin
Nibu babu thomas5-Jun-08 17:44
Nibu babu thomas5-Jun-08 17:44 
Kwanalouie wrote:
The problem I have is that when the cursor is at the top of the client window and I click the right mouse button, the value of point.y is around 72 instead of zero. When I use this same code in the OnLeftMouseDown routine, the value of point.y at the top of the Client window is zero.


Because OnContextMenu point parameter is in screen co-ordinates and your right click handler point is in client co-ordinates so call ClientToScreen/MapWindowPoints to convert to screen co-ordinates. That's why it's zero in right click handler and 72 in context menu handler.

From MSDN for OnContextMenu point parameter

Position of the cursor, in screen coordinates, at the time of the mouse click.

From MSDN for OnLButtonDown point parameter

Specifies the x- and y-coordinate of the cursor. These coordinates are always relative to the upper-left corner of the window.


Nibu thomas
Microsoft MVP for VC++


Code must be written to be read, not by the compiler, but by another human being.

Programming Blog: http://nibuthomas.wordpress.com

modified on Thursday, June 5, 2008 11:52 PM

GeneralRe: Help with mouse coordinates Pin
Kwanalouie5-Jun-08 18:06
Kwanalouie5-Jun-08 18:06 
QuestionVS 6.0 C++ code imported to MS VS 2003 or above for rebuilding projects Pin
Kyle P5-Jun-08 10:33
Kyle P5-Jun-08 10:33 
AnswerRe: VS 6.0 C++ code imported to MS VS 2003 or above for rebuilding projects Pin
David Crow5-Jun-08 10:41
David Crow5-Jun-08 10:41 
GeneralRe: VS 6.0 C++ code imported to MS VS 2003 or above for rebuilding projects Pin
Kyle P5-Jun-08 16:50
Kyle P5-Jun-08 16:50 
GeneralRe: VS 6.0 C++ code imported to MS VS 2003 or above for rebuilding projects Pin
Emilio Garavaglia5-Jun-08 21:17
Emilio Garavaglia5-Jun-08 21:17 
GeneralRe: VS 6.0 C++ code imported to MS VS 2003 or above for rebuilding projects Pin
David Crow6-Jun-08 2:46
David Crow6-Jun-08 2:46 
QuestionLinker error between projects Pin
KellyR5-Jun-08 9:54
KellyR5-Jun-08 9:54 
AnswerRe: Linker error between projects Pin
Akt_4_U5-Jun-08 17:28
Akt_4_U5-Jun-08 17:28 
QuestionWindows Threads and CPU % usage... Pin
OCrowley5-Jun-08 8:45
OCrowley5-Jun-08 8:45 
AnswerRe: Windows Threads and CPU % usage... [modified] Pin
Jijo.Raj5-Jun-08 8:58
Jijo.Raj5-Jun-08 8:58 
GeneralRe: Windows Threads and CPU % usage... Pin
Jijo.Raj5-Jun-08 18:28
Jijo.Raj5-Jun-08 18:28 
AnswerRe: Windows Threads and CPU % usage... Pin
krmed5-Jun-08 9:11
krmed5-Jun-08 9:11 
AnswerRe: Windows Threads and CPU % usage... Pin
Joe Woodbury5-Jun-08 9:35
professionalJoe Woodbury5-Jun-08 9:35 
AnswerRe: Windows Threads and CPU % usage... Pin
Nemanja Trifunovic5-Jun-08 10:08
Nemanja Trifunovic5-Jun-08 10:08 
AnswerRe: Windows Threads and CPU % usage... Pin
OCrowley5-Jun-08 13:13
OCrowley5-Jun-08 13:13 
QuestionPreview outlook express email(.eml) file in my application Pin
john56325-Jun-08 8:25
john56325-Jun-08 8:25 
QuestionProblems with variables Pin
Henitz5-Jun-08 6:55
Henitz5-Jun-08 6:55 

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.