Click here to Skip to main content
15,890,506 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to pan a window using C++/VC++ code Pin
Software_Developer13-Aug-12 8:42
Software_Developer13-Aug-12 8:42 
GeneralRe: How to pan client area of a window using C++/VC++ code Pin
Member 935377618-Aug-12 19:35
Member 935377618-Aug-12 19:35 
AnswerRe: How to pan a window using C++/VC++ code Pin
pasztorpisti13-Aug-12 11:54
pasztorpisti13-Aug-12 11:54 
GeneralRe: How to pan a window using C++/VC++ code Pin
Member 935377613-Aug-12 20:17
Member 935377613-Aug-12 20:17 
GeneralRe: How to pan a window using C++/VC++ code Pin
pasztorpisti13-Aug-12 22:40
pasztorpisti13-Aug-12 22:40 
GeneralRe: How to pan a window using C++/VC++ code Pin
Member 935377616-Aug-12 20:16
Member 935377616-Aug-12 20:16 
GeneralRe: How to pan a window using C++/VC++ code Pin
pasztorpisti16-Aug-12 22:22
pasztorpisti16-Aug-12 22:22 
GeneralRe: How to pan client area of a window using C++/VC++ code Pin
Member 935377616-Aug-12 22:56
Member 935377616-Aug-12 22:56 
In your program you have used SetWindowPos() to change the position of window.

But to move the client area, which API should i use.

Say,
Mouse button down
1) capture initial position of mouse using GetCursorPos()

Mouse move.

2) Calculate the difference of x and y coordinates using previous cursor position and current cursor position

Mouse button UP

3)After calculating the latest value as said about, which api should be used to move the client coordinates. (in your program you have used SetWindowPos())

-Maha
GeneralRe: How to pan client area of a window using C++/VC++ code Pin
pasztorpisti16-Aug-12 23:00
pasztorpisti16-Aug-12 23:00 
GeneralRe: How to pan client area of a window using C++/VC++ code Pin
Member 935377620-Aug-12 19:19
Member 935377620-Aug-12 19:19 
QuestionHow to change text in a text box while user is typing in another edit box in MFC.? Pin
mbatra3112-Aug-12 23:42
mbatra3112-Aug-12 23:42 
AnswerRe: How to change text in a text box while user is typing in another edit box in MFC.? Pin
Richard MacCutchan13-Aug-12 0:38
mveRichard MacCutchan13-Aug-12 0:38 
QuestionHow to generate Crystal Report in VC++ (VS2008) Pin
shiokbarnabas12-Aug-12 18:00
shiokbarnabas12-Aug-12 18:00 
AnswerRe: How to generate Crystal Report in VC++ (VS2008) Pin
Software_Developer12-Aug-12 23:18
Software_Developer12-Aug-12 23:18 
QuestionRichedit is displayed and Immediately aborts Pin
ForNow11-Aug-12 17:53
ForNow11-Aug-12 17:53 
AnswerRe: Richedit is displayed and Immediately aborts Pin
Richard MacCutchan11-Aug-12 21:44
mveRichard MacCutchan11-Aug-12 21:44 
GeneralRe: Richedit is displayed and Immediately aborts Pin
ForNow12-Aug-12 3:07
ForNow12-Aug-12 3:07 
GeneralRe: Richedit is displayed and Immediately aborts Pin
Richard MacCutchan12-Aug-12 4:01
mveRichard MacCutchan12-Aug-12 4:01 
GeneralRe: Out of Memory help Pin
ForNow12-Aug-12 12:47
ForNow12-Aug-12 12:47 
GeneralRe: Out of Memory help Pin
Bram van Kampen12-Aug-12 14:45
Bram van Kampen12-Aug-12 14:45 
QuestionRe: Out of Memory help Pin
Richard Andrew x6412-Aug-12 15:12
professionalRichard Andrew x6412-Aug-12 15:12 
AnswerRe: Out of Memory help Pin
Bram van Kampen13-Aug-12 11:24
Bram van Kampen13-Aug-12 11:24 
GeneralRe: Out of Memory help Pin
Richard Andrew x6413-Aug-12 12:10
professionalRichard Andrew x6413-Aug-12 12:10 
GeneralRe: Out of Memory help Pin
Richard MacCutchan12-Aug-12 21:44
mveRichard MacCutchan12-Aug-12 21:44 
GeneralRe: Out of Memory help Pin
ForNow13-Aug-12 2:56
ForNow13-Aug-12 2:56 

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.