Solved

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

Posted on 1997-12-16
4
562 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_
  • 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

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