Click here to Skip to main content
15,904,297 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionError in Network based application Pin
Vichitram13-Mar-07 17:40
Vichitram13-Mar-07 17:40 
AnswerRe: Error in Network based application Pin
Mark Salsbery14-Mar-07 6:53
Mark Salsbery14-Mar-07 6:53 
QuestionSystem!!! Pin
Tran Ngoc Minh13-Mar-07 17:29
Tran Ngoc Minh13-Mar-07 17:29 
AnswerRe: System!!! Pin
Hamid_RT13-Mar-07 18:16
Hamid_RT13-Mar-07 18:16 
QuestionOnLButtonDown Pin
Aint13-Mar-07 16:45
Aint13-Mar-07 16:45 
AnswerRe: OnLButtonDown Pin
Hamid_RT13-Mar-07 18:14
Hamid_RT13-Mar-07 18:14 
GeneralRe: OnLButtonDown Pin
Aint13-Mar-07 18:37
Aint13-Mar-07 18:37 
GeneralRe: OnLButtonDown Pin
Parthi_Appu13-Mar-07 19:10
Parthi_Appu13-Mar-07 19:10 
ReturnRain wrote:
When I use GetCursorPos in the dlg in the OnPicture method, i can get the coordinates. But it is the coordinates of the dialog, not the coordinates of the picture


GetCursorPos() will return the x,y points with respect to screen coordinates.
Change those to clinet coordinates. say, m_wndMyStatic is your derived static class variable,then
POINT pt = {0};
GetCursorPos( &pt );
m_wndMyStatic.ScreenToClient( &pt );



ReturnRain wrote:
And also i want to get the coordinates when the left button is down and when the left button is up. How do i go abt in doing this


Handle WM_LBUTTONDOWN and WM_LBUTTONUP and do the above. You can get the rect..

Hope this will help

Do your Duty and Don't expect the Result

GeneralRe: OnLButtonDown Pin
Aint13-Mar-07 20:06
Aint13-Mar-07 20:06 
GeneralRe: OnLButtonDown Pin
Hamid_RT13-Mar-07 20:23
Hamid_RT13-Mar-07 20:23 
AnswerRe: OnLButtonDown Pin
William.Wang13-Mar-07 19:21
William.Wang13-Mar-07 19:21 
QuestionAlphaBlend() strange colors. Pin
PatrykDabrowski13-Mar-07 13:05
PatrykDabrowski13-Mar-07 13:05 
QuestionRe: AlphaBlend() strange colors. Pin
Mark Salsbery13-Mar-07 16:04
Mark Salsbery13-Mar-07 16:04 
QuestionRe: AlphaBlend() strange colors. Pin
PatrykDabrowski20-Mar-07 2:01
PatrykDabrowski20-Mar-07 2:01 
AnswerRe: AlphaBlend() strange colors. Pin
Mark Salsbery20-Mar-07 7:45
Mark Salsbery20-Mar-07 7:45 
Questioncompatibility problem Pin
duca_andrei13-Mar-07 11:11
duca_andrei13-Mar-07 11:11 
AnswerRe: compatibility problem Pin
Paresh Chitte13-Mar-07 18:37
Paresh Chitte13-Mar-07 18:37 
QuestionClearing data Pin
eRose2413-Mar-07 11:10
eRose2413-Mar-07 11:10 
QuestionRe: Clearing data Pin
prasad_som13-Mar-07 15:45
prasad_som13-Mar-07 15:45 
AnswerRe: Clearing data Pin
Hamid_RT13-Mar-07 18:20
Hamid_RT13-Mar-07 18:20 
Questionscrollbar problem Pin
prithaa13-Mar-07 9:25
prithaa13-Mar-07 9:25 
AnswerRe: scrollbar problem Pin
Mark Salsbery13-Mar-07 16:09
Mark Salsbery13-Mar-07 16:09 
GeneralRe: scrollbar problem Pin
prithaa13-Mar-07 18:44
prithaa13-Mar-07 18:44 
GeneralRe: scrollbar problem Pin
Mark Salsbery14-Mar-07 6:04
Mark Salsbery14-Mar-07 6:04 
Questioncin issue Pin
Programm3r13-Mar-07 8:48
Programm3r13-Mar-07 8:48 

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.