Click here to Skip to main content
15,914,447 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to show static control (label) at desired postion dynamically ? Pin
David Crow10-Aug-05 3:46
David Crow10-Aug-05 3:46 
GeneralMFC: Modeless Child Dialog Minimize Behavior Pin
garkhov_major10-Aug-05 2:43
garkhov_major10-Aug-05 2:43 
GeneralAbout printing margin Pin
a_du10-Aug-05 2:11
a_du10-Aug-05 2:11 
GeneralAlogorithm for graphical time display in scheduling application Pin
Alexandar Kolaric10-Aug-05 2:08
Alexandar Kolaric10-Aug-05 2:08 
GeneralProblem in using API "DocumentProperties()" Pin
Kevin Bao10-Aug-05 1:25
Kevin Bao10-Aug-05 1:25 
GeneralRe: Problem in using API "DocumentProperties()" Pin
David Crow10-Aug-05 3:49
David Crow10-Aug-05 3:49 
GeneralYes, I have done so. After "DocumentProperties()", the last error maybe 0 and sometimes maybe 1114. Pin
Kevin Bao10-Aug-05 15:58
Kevin Bao10-Aug-05 15:58 
Questionrelative coordinates to absolute? Pin
ThinkingPrometheus10-Aug-05 0:38
ThinkingPrometheus10-Aug-05 0:38 
hiho@ll

i'm using OnLButtonUp to get the coordinates of a mouseclick
the problem:
OnLButtonUp from MSDN: Specifies the x- and y-coordinate of the cursor. These coordinates are always relative to the upper-left corner of the window

so i thought using GetWindowRect and just adding the values point.x+=rect.left AND point.y+=rect.top will convert the relative coordinates to absolute

the problem is
for example if my window is in the middle of the screen and i click on the top of the screen (the absolute y position should be between 0 or 10)

i get an relative point.y coordinate -22!!!!
which means i clicked 22 pixel above my window? but i clicked a few hundred pixels above my window!

so how can i convert the relative coordinates to absolute?
AnswerRe: relative coordinates to absolute? Pin
icabod10-Aug-05 1:09
icabod10-Aug-05 1:09 
GeneralRe: relative coordinates to absolute? Pin
ThinkingPrometheus10-Aug-05 1:11
ThinkingPrometheus10-Aug-05 1:11 
AnswerRe: relative coordinates to absolute? Pin
ThatsAlok10-Aug-05 1:09
ThatsAlok10-Aug-05 1:09 
QuestionHow to test my code Pin
Member 216100410-Aug-05 0:27
Member 216100410-Aug-05 0:27 
AnswerRe: How to test my code Pin
Bob Stanneveld10-Aug-05 1:03
Bob Stanneveld10-Aug-05 1:03 
AnswerRe: How to test my code Pin
toxcct10-Aug-05 1:13
toxcct10-Aug-05 1:13 
GeneralRe: How to test my code Pin
Tom Wright10-Aug-05 8:37
Tom Wright10-Aug-05 8:37 
GeneralRe: How to test my code Pin
Member 216100410-Aug-05 14:49
Member 216100410-Aug-05 14:49 
GeneralRe: How to test my code Pin
toxcct10-Aug-05 20:12
toxcct10-Aug-05 20:12 
Generalerror LNK2001 Pin
jokefake10-Aug-05 0:12
jokefake10-Aug-05 0:12 
GeneralRe: error LNK2001 Pin
Bob Stanneveld10-Aug-05 1:04
Bob Stanneveld10-Aug-05 1:04 
GeneralRe: error LNK2001 Pin
toxcct10-Aug-05 1:15
toxcct10-Aug-05 1:15 
GeneralRe: error LNK2001 Pin
David Crow10-Aug-05 3:54
David Crow10-Aug-05 3:54 
GeneralRe: error LNK2001 Pin
toxcct10-Aug-05 3:57
toxcct10-Aug-05 3:57 
GeneralRe: error LNK2001 Pin
SunKnight010-Aug-05 6:31
SunKnight010-Aug-05 6:31 
GeneralRe: error LNK2001 Pin
toxcct10-Aug-05 20:14
toxcct10-Aug-05 20:14 
GeneralAssertion failed Pin
manishgandhi9-Aug-05 22:54
manishgandhi9-Aug-05 22:54 

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.