Click here to Skip to main content
15,913,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to remove the maximize button... Pin
Maer72724-Aug-01 3:28
Maer72724-Aug-01 3:28 
AnswerRe: How to remove the maximize button... Pin
Zoltan Csizmadia24-Aug-01 4:14
Zoltan Csizmadia24-Aug-01 4:14 
GeneralRe: How to remove the maximize button... Pin
Maer72724-Aug-01 22:21
Maer72724-Aug-01 22:21 
QuestionHow can I get the KB articles? Pin
Maer72724-Aug-01 3:27
Maer72724-Aug-01 3:27 
AnswerRe: How can I get the KB articles? Pin
Josh Knox24-Aug-01 4:16
Josh Knox24-Aug-01 4:16 
GeneralRe: How can I get the KB articles? Pin
Maer72724-Aug-01 22:33
Maer72724-Aug-01 22:33 
GeneralBitmap dialog drawing problem Pin
24-Aug-01 3:14
suss24-Aug-01 3:14 
GeneralBitmap dialog drawing problem Pin
24-Aug-01 3:13
suss24-Aug-01 3:13 
I have designed a class for win32 (not mfc) which takes a bitmap , makes a region of it and then draws that bitmap on the window canvas.(skin stuff)
I use a memory dc to speed things up.
However when i quickly move the window it still leaves prints behind.
I don't use any own code to move the window, i intercept the NCHITTEST message and respond with return HTCAPTION;
I have tried writing my own code for WM_LBUTTONDOWN, WM_LBUTTONUP, WM_MOUSEMOVE to allow tracking and moving of the window and then use SetWindowPos to actually move the window but this sollution leaves even more trails behind. I also capture the WM_ERASEBKGND message.

Any idea on how to speed it up? The only thing i can think of is not moving the window but showing a rectangle of the new window position when people are dragging the window. I tried something like that but got into trouble. I was using a hdc that i got via ::GetDC(NULL) since i need to draw on top of everything else then but i couldn't find a good way of deleting my previous rectangle.

I have looked at other samples for skinwindows but they al seem to use the same draw stuff like i do.

Does anybody have a sample program for this or know how to speed up the drawing without leaving a trail?

Thanks.

GeneralVisual Studio and stray files Pin
John Hagen24-Aug-01 2:39
John Hagen24-Aug-01 2:39 
QuestionHow change network drive name? Pin
24-Aug-01 1:09
suss24-Aug-01 1:09 
GeneralDirectX and timers Pin
24-Aug-01 0:52
suss24-Aug-01 0:52 
GeneralRe: DirectX and timers Pin
Anders Molin24-Aug-01 1:16
professionalAnders Molin24-Aug-01 1:16 
GeneralRe: DirectX and timers Pin
Andrew Peace24-Aug-01 13:21
Andrew Peace24-Aug-01 13:21 
GeneralRe: DirectX and timers Pin
25-Aug-01 3:36
suss25-Aug-01 3:36 
Generalproblem in CTreeView Pin
24-Aug-01 0:48
suss24-Aug-01 0:48 
GeneralListBox presentation Pin
24-Aug-01 0:27
suss24-Aug-01 0:27 
GeneralScroll Bars Pin
24-Aug-01 0:13
suss24-Aug-01 0:13 
GeneralRe: Scroll Bars Pin
JerzyPeter24-Aug-01 3:20
JerzyPeter24-Aug-01 3:20 
GeneralRe: Scroll Bars Pin
MAXS72U24-Aug-01 4:49
MAXS72U24-Aug-01 4:49 
GeneralRe: Scroll Bars Pin
24-Aug-01 6:18
suss24-Aug-01 6:18 
GeneralRe: Scroll Bars Pin
MAXS72U27-Aug-01 1:37
MAXS72U27-Aug-01 1:37 
Generalordering a STL - list of objects Pin
Bernhard23-Aug-01 23:59
Bernhard23-Aug-01 23:59 
GeneralRe: ordering a STL - list of objects Pin
Tomasz Sowinski24-Aug-01 0:53
Tomasz Sowinski24-Aug-01 0:53 
GeneralThumbnails Pin
AJ12323-Aug-01 23:51
AJ12323-Aug-01 23:51 
GeneralRe: Thumbnails Pin
Not Active24-Aug-01 4:39
mentorNot Active24-Aug-01 4:39 

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.