Click here to Skip to main content
16,005,178 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: resize non-client area Pin
Jeremy Falcon7-Apr-03 12:22
professionalJeremy Falcon7-Apr-03 12:22 
GeneralRe: resize non-client area Pin
J. Dunlap7-Apr-03 12:35
J. Dunlap7-Apr-03 12:35 
GeneralRe: resize non-client area Pin
Ravi Bhavnani7-Apr-03 13:07
professionalRavi Bhavnani7-Apr-03 13:07 
GeneralRe: resize non-client area Pin
J. Dunlap7-Apr-03 13:13
J. Dunlap7-Apr-03 13:13 
GeneralRe: resize non-client area Pin
Ravi Bhavnani7-Apr-03 13:59
professionalRavi Bhavnani7-Apr-03 13:59 
GeneralRe: resize non-client area Pin
J. Dunlap7-Apr-03 14:04
J. Dunlap7-Apr-03 14:04 
GeneralRe: resize non-client area Pin
Ravi Bhavnani7-Apr-03 14:15
professionalRavi Bhavnani7-Apr-03 14:15 
GeneralRe: resize non-client area Pin
J. Dunlap7-Apr-03 14:36
J. Dunlap7-Apr-03 14:36 
Because if another app drew on the screen in an area where you had inverted an area to draw the resize border, and then you re-inverted it, you would invert a part that had just been drawn over, which would leave a strange partial inverted band on the screen until that area was re-painted. So you call LockWindowUpdate(GetDesktopWindow()) to disallow other apps from drawing on the screen. Then you call GetDC(GetDesktopWindow(),NULL,DCX_LockWindowUpdate) to draw on the desktop window yourself. When you've unlocked the window update (by calling LockWindowUpdate(NULL)), the areas which other apps have attempted to draw on will be invalidated.

PS:
It's not that this is impossible or even extremely hard - it's just that there *ought* to be a better way.


"Do unto others as you would have them do unto you." - Jesus

"An eye for an eye only makes the whole world blind." - Mahatma Gandhi







GeneralRe: resize non-client area Pin
Ravi Bhavnani7-Apr-03 15:48
professionalRavi Bhavnani7-Apr-03 15:48 
GeneralRe: resize non-client area Pin
J. Dunlap7-Apr-03 17:52
J. Dunlap7-Apr-03 17:52 
GeneralRe: resize non-client area Pin
Jeremy Falcon8-Apr-03 3:11
professionalJeremy Falcon8-Apr-03 3:11 
QuestionHow to execute an external application Pin
work_to_live7-Apr-03 11:10
work_to_live7-Apr-03 11:10 
AnswerRe: How to execute an external application Pin
Chris Losinger7-Apr-03 11:17
professionalChris Losinger7-Apr-03 11:17 
GeneralRe: How to execute an external application Pin
work_to_live7-Apr-03 12:59
work_to_live7-Apr-03 12:59 
AnswerRe: How to execute an external application Pin
GIJack7-Apr-03 11:22
sussGIJack7-Apr-03 11:22 
GeneralChecking for latest version Pin
brianwelsch7-Apr-03 10:56
brianwelsch7-Apr-03 10:56 
GeneralRe: Checking for latest version Pin
valikac7-Apr-03 11:05
valikac7-Apr-03 11:05 
GeneralStarting with Visual C++ Pin
Yamarain7-Apr-03 9:55
Yamarain7-Apr-03 9:55 
GeneralRe: Starting with Visual C++ Pin
James A Beggs7-Apr-03 10:15
James A Beggs7-Apr-03 10:15 
GeneralRe: Starting with Visual C++ Pin
Yamarain7-Apr-03 10:21
Yamarain7-Apr-03 10:21 
GeneralRe: Starting with Visual C++ Pin
James A Beggs7-Apr-03 10:30
James A Beggs7-Apr-03 10:30 
GeneralRe: Starting with Visual C++ Pin
Yamarain7-Apr-03 10:33
Yamarain7-Apr-03 10:33 
GeneralRe: Starting with Visual C++ Pin
J. Dunlap7-Apr-03 11:09
J. Dunlap7-Apr-03 11:09 
GeneralRe: Starting with Visual C++ Pin
Yamarain7-Apr-03 11:20
Yamarain7-Apr-03 11:20 
GeneralRe: Starting with Visual C++ Pin
J. Dunlap7-Apr-03 18:24
J. Dunlap7-Apr-03 18: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.