Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 582
  • Last Modified:

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

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
_art_
Asked:
_art_
  • 2
1 Solution
 
d003303Commented:
Hi,
for your repaint problem just a guess, try sending a WM_NCPAINT-Message to your form.

Hope this helps,
Slash/d003303
0
 
ZifNabCommented:
??? Just call this : TMenuItemName.Click;

Like if your menu item has the name Select1 :

Select1.Click will activate the menu item.
0
 
_art_Author Commented:
No, wm_ncpaint is the answer. :-)
0
 
ZifNabCommented:
Then reject my answer
0

Featured Post

Industry Leaders: 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!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now