Solved

[Q] Redraw() for manin menu bar items...?

Posted on 1997-12-16
4
574 Views
Last Modified: 2010-04-04
Hello there,

How do I force menu items (those from main menu bar) to repaint themselves? I mean I cant send
wm_drawitem myself can I? So how do I do? Need it sorta bad!
Or how can I activate some menu item from within my program... Like send
wm_menuselect? Is there any way to do that?


0
Comment
Question by:_art_
[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
  • 2
4 Comments
 
LVL 4

Expert Comment

by:d003303
ID: 1354005
Hi,
for your repaint problem just a guess, try sending a WM_NCPAINT-Message to your form.

Hope this helps,
Slash/d003303
0
 
LVL 8

Accepted Solution

by:
ZifNab earned 210 total points
ID: 1354006
??? Just call this : TMenuItemName.Click;

Like if your menu item has the name Select1 :

Select1.Click will activate the menu item.
0
 

Author Comment

by:_art_
ID: 1354007
No, wm_ncpaint is the answer. :-)
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1354008
Then reject my answer
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

Suggested Solutions

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

730 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