Solved

Drawing Menu/Scrollbars after NCPAINT

Posted on 2004-04-09
3
347 Views
Last Modified: 2013-11-20
Hello,

     Sorry for the low point value.  Ill add as many points as I can before the project is answered.
     Ok, the problem is this, after overriding OnNcPaint, OnNcHitTest, OnNcCalcSize, OnNcLButtonDown, and OnNcLButtonDblClk, my system (main)menu (stored in the resource file), as well as any scrollbars are not displayed.  I dont think i can call the default form process over again from the override, as i have changed the client size considerably.  Im hoping there are functions to draw it, but im willing to do any way possable.  If you can push me close enough in the right direction, the points are yours.

Thank you
Richard
0
Comment
Question by:RichardCesar
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Author Comment

by:RichardCesar
ID: 10797907
Increased Points
0
 
LVL 11

Accepted Solution

by:
KurtVon earned 25 total points
ID: 10827847
Drawing XP NC stuff is complex: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/userex/refentry.asp but there are ways to do it without blocking Win2000 NC drawing taht you can use, like http://www.codeproject.com/managedcpp/ManagedUxTheme.asp?df=100&forumid=16513&exp=0&select=727594

For non-XP drawing (or in XP while ignoring the skins) you can use the API calls like DrawCaption and DrawEdge.

There is also a nice example of drawing the non-client area by shrinking the region in the message: http://core.tav.kiev.ua/~om/msj/0697/c++textfigs.htm but I haven't tried that myself.

Hope this helps.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question