Overriding Window Frame Paint

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.
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
Topic archived. No new replies allowed.