Click here to Skip to main content
15,922,630 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMFC doc/view with non-file-based documents Pin
Taka Muraoka6-Dec-02 1:52
Taka Muraoka6-Dec-02 1:52 
GeneralRe: MFC doc/view with non-file-based documents Pin
Prem Kumar6-Dec-02 4:31
Prem Kumar6-Dec-02 4:31 
GeneralRe: MFC doc/view with non-file-based documents Pin
Taka Muraoka6-Dec-02 4:45
Taka Muraoka6-Dec-02 4:45 
GeneralRe: MFC doc/view with non-file-based documents Pin
Roger Allen6-Dec-02 5:30
Roger Allen6-Dec-02 5:30 
GeneralRe: MFC doc/view with non-file-based documents Pin
Taka Muraoka6-Dec-02 11:20
Taka Muraoka6-Dec-02 11:20 
GeneralMsgWaitForMultipleObjects() Pin
Hugo Hallman6-Dec-02 1:08
Hugo Hallman6-Dec-02 1:08 
GeneralRe: MsgWaitForMultipleObjects() Pin
geo_m6-Dec-02 2:50
geo_m6-Dec-02 2:50 
QuestionHow to set DC Clipping Region?? Pin
work_to_live6-Dec-02 0:44
work_to_live6-Dec-02 0:44 
I'm creating a dialog with a section of it used for drawing graphs. Following the design presented in the Fire sample supplied with VC++ 6.0, I inserted a Static control in the dialog, and attached it to my own "ZPlane" drawing object derived from CStatic.

Everything worked as expected until I drew a circle that went outside the dimensions of the Static control. For some reason, I can draw outside the the control as layed out in the dialog. I thought the DC constructed with the this pointer would return an object with "clipping" set to the size of the CStatic object inside the dialog, but it seems to have been constructed with a clipping region of the parent dialog box.

It's 3:30am, I'm tired, and will work on it some more tomorrow, but if you can point me in the right direction, I'd appreciate it. The question is, how do you set up the clipping region of the DC? I've tried a few of the DC set clip region commands, but to no avail.

If I call GetClientRect from my CStatic derived drawing object, I get the correct size of the Static control, and if I draw a rectangle based on that Rect, it's the size of the Static control. I'd like to specify the clipping region of the DC (I'm assuming you can do this) to the size of the Rect obtained with the GetClientRect.

Thanks.
AnswerRe: How to set DC Clipping Region?? Pin
work_to_live6-Dec-02 1:06
work_to_live6-Dec-02 1:06 
GeneralRe: How to set DC Clipping Region?? Pin
Paul M Watt6-Dec-02 6:06
mentorPaul M Watt6-Dec-02 6:06 
QuestionHow can I hide the "Printing" dialog that comes up when a report is sent off to Pin
valos6-Dec-02 0:38
valos6-Dec-02 0:38 
AnswerRe: How can I hide the "Printing" dialog that comes up when a report is sent off to Pin
Prem Kumar6-Dec-02 1:43
Prem Kumar6-Dec-02 1:43 
GeneralResizing in windows 98... Pin
Neha6-Dec-02 0:34
Neha6-Dec-02 0:34 
GeneralRe: Resizing in windows 98... Pin
Paul M Watt6-Dec-02 6:17
mentorPaul M Watt6-Dec-02 6:17 
GeneralRe: Resizing in windows 98... Pin
Neha6-Dec-02 16:42
Neha6-Dec-02 16:42 
GeneralRe: Resizing in windows 98... Pin
Neha6-Dec-02 18:31
Neha6-Dec-02 18:31 
GeneralEmbeded Excel objects Pin
-Dy6-Dec-02 0:34
-Dy6-Dec-02 0:34 
GeneralRe: Embeded Excel objects Pin
Nitron7-Dec-02 12:42
Nitron7-Dec-02 12:42 
GeneralRandom Gaussian numbers Pin
Chun Te, Ewe6-Dec-02 0:27
Chun Te, Ewe6-Dec-02 0:27 
GeneralRe: Random Gaussian numbers Pin
Rickard Andersson206-Dec-02 0:45
Rickard Andersson206-Dec-02 0:45 
GeneralRe: Random Gaussian numbers Pin
Chun Te, Ewe6-Dec-02 0:52
Chun Te, Ewe6-Dec-02 0:52 
GeneralRe: Random Gaussian numbers Pin
Rickard Andersson206-Dec-02 1:02
Rickard Andersson206-Dec-02 1:02 
GeneralRe: Random Gaussian numbers Pin
Daniel Turini6-Dec-02 1:24
Daniel Turini6-Dec-02 1:24 
GeneralRe: Random Gaussian numbers Pin
Daniel Turini6-Dec-02 1:19
Daniel Turini6-Dec-02 1:19 
GeneralRe: Random Gaussian numbers Pin
Chun Te, Ewe6-Dec-02 1:24
Chun Te, Ewe6-Dec-02 1:24 

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.