cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
user name:
password:
Forgot your password?
please wait
try again
cancel
forgot your password?
sign up
log in
[Legacy version]
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Windows Programming
Overriding Window Frame Paint
Overriding Window Frame Paint
Aug 26, 2011 at 10:07pm
Aug 26, 2011 at 10:07pm UTC
closed account (
o1vk4iN6
)
Well I want to paint my own window rather than using Window's default frame style. Although I just don't want to paint over it, is there a way to completely override the draw of the frame so that it's not wasting resources?
Thanks for any help.
Aug 27, 2011 at 11:18am
Aug 27, 2011 at 11:18am UTC
andywestken
(4094)
There are three ways I am aware of
#1 Create the window without a frame and draw your own "frame" within the client area
#2 Handle WM_NCPAINT and do your own frame drawing
#3 If you only want to support Vista and newer, use the Desktop Window Manager API (I've only ever read about this last approach)
Custom Window Frame Using DWM
http://msdn.microsoft.com/en-us/library/bb688195%28v=vs.85%29.aspx
#2 is prob. the best fit for you??
Last edited on
Aug 27, 2011 at 11:56am
Aug 27, 2011 at 11:56am UTC
Topic archived. No new replies allowed.