Click here to Skip to main content
15,885,835 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerThen, please, leave my dear. Pin
CPallini21-Aug-12 7:04
mveCPallini21-Aug-12 7:04 
AnswerRe: What happened to the forum? Pin
Richard MacCutchan21-Aug-12 7:16
mveRichard MacCutchan21-Aug-12 7:16 
QuestionNeed help to pan client area of a window using win32 api / mfc Pin
Member 935377620-Aug-12 19:43
Member 935377620-Aug-12 19:43 
AnswerRe: Need help to pan client area of a window using win32 api / mfc Pin
Richard MacCutchan20-Aug-12 21:22
mveRichard MacCutchan20-Aug-12 21:22 
GeneralRe: Need help to pan client area of a window using win32 api / mfc Pin
Member 935377620-Aug-12 21:59
Member 935377620-Aug-12 21:59 
GeneralRe: Need help to pan client area of a window using win32 api / mfc Pin
Richard MacCutchan20-Aug-12 22:34
mveRichard MacCutchan20-Aug-12 22:34 
GeneralRe: Need help to pan client area of a window using win32 api / mfc Pin
Richard MacCutchan20-Aug-12 22:36
mveRichard MacCutchan20-Aug-12 22:36 
AnswerRe: Need help to pan client area of a window using win32 api / mfc Pin
Sunil P V20-Aug-12 22:38
Sunil P V20-Aug-12 22:38 
Hi,

We can achieve this. Please understand the below simple concept with respect to CAD or any drafting utility. We have 2 view perspective always.
1. the world window
2. the view port window. (this is what you need to add in your program)

The above can be best understood with the this example: Assume you are taking photograph of a flower in a park. Now, we focus only the flower in the view finder of your camera, and the park in this case forms the world around the flower. So in this case the park becomes the world window and the flower becomes the view window.

Similarly the whole drawing in your application is the world window whereas the part of the drawing that is shown to the end user is the view window. You have to make use of the SetViewportOrg method in your application. Please read this http://msdn.microsoft.com/en-us/library/46t66w7t.aspx[^]. Let me know if you need more help, I have done this before but unfortunately cannot find the source for it...
Sunil

GeneralRe: Need help to pan client area of a window using win32 api / mfc Pin
Richard MacCutchan21-Aug-12 0:37
mveRichard MacCutchan21-Aug-12 0:37 
GeneralRe: Need help to pan client area of a window using win32 api / mfc Pin
Sunil P V24-Aug-12 1:29
Sunil P V24-Aug-12 1:29 
GeneralRe: Need help to pan client area of a window using win32 api / mfc Pin
Member 935377622-Aug-12 21:55
Member 935377622-Aug-12 21:55 
GeneralRe: Need help to pan client area of a window using win32 api / mfc Pin
Sunil P V24-Aug-12 1:31
Sunil P V24-Aug-12 1:31 
AnswerRe: Need help to pan client area of a window using win32 api / mfc Pin
pasztorpisti21-Aug-12 4:59
pasztorpisti21-Aug-12 4:59 
GeneralRe: Need help to pan client area of a window using win32 api / mfc Pin
Member 935377622-Aug-12 22:48
Member 935377622-Aug-12 22:48 
GeneralRe: Need help to pan client area of a window using win32 api / mfc Pin
pasztorpisti22-Aug-12 23:07
pasztorpisti22-Aug-12 23:07 
QuestionTrying not to display the "description" part of a tooltip. (MFC) Pin
Maximilien20-Aug-12 5:03
Maximilien20-Aug-12 5:03 
QuestionCan not catch OnKeyup on CListCtrl Pin
_Flaviu20-Aug-12 5:03
_Flaviu20-Aug-12 5:03 
AnswerRe: Can not catch OnKeyup on CListCtrl Pin
Software_Developer20-Aug-12 9:15
Software_Developer20-Aug-12 9:15 
QuestionBITMAPINFOHEADER working in Debug but not in Release Pin
002comp19-Aug-12 21:15
002comp19-Aug-12 21:15 
AnswerRe: BITMAPINFOHEADER working in Debug but not in Release Pin
Endurion_19-Aug-12 22:39
Endurion_19-Aug-12 22:39 
GeneralRe: BITMAPINFOHEADER working in Debug but not in Release Pin
002comp19-Aug-12 22:43
002comp19-Aug-12 22:43 
GeneralRe: BITMAPINFOHEADER working in Debug but not in Release Pin
Endurion_20-Aug-12 5:01
Endurion_20-Aug-12 5:01 
AnswerRe: BITMAPINFOHEADER working in Debug but not in Release [Solved] but need one Suggestion Pin
002comp19-Aug-12 22:41
002comp19-Aug-12 22:41 
AnswerRe: BITMAPINFOHEADER working in Debug but not in Release Pin
CPallini19-Aug-12 23:00
mveCPallini19-Aug-12 23:00 
QuestionModeless Dialog box using win32 API only Pin
csrss19-Aug-12 7:14
csrss19-Aug-12 7:14 

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.