Solved

Drawing Menu/Scrollbars after NCPAINT

Posted on 2004-04-09
3
340 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
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
This video discusses moving either the default database or any database to a new volume.

707 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now