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

C / C++ / MFC

 
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 
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 
ClientRect coordinates are always rooted at (0,0) and extend the width and the height of your window.

If your DC is being constructed for the entire dialog, and not just the static control that you have created, then if your static control is not rooted at (,0) then GetClientRect will not work for you.

You could try using ::GetWindowRect()< instead. It will contain the coordinates of your static control relative to the window that created the DC.

Good Luck


Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

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 
GeneralRe: Random Gaussian numbers Pin
jhwurmbach6-Dec-02 1:20
jhwurmbach6-Dec-02 1:20 
GeneralRe: Random Gaussian numbers Pin
Daniel Turini6-Dec-02 1:25
Daniel Turini6-Dec-02 1:25 

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.