?
Solved

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

Posted on 1997-12-16
4
Medium Priority
?
578 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 420 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month10 days, 4 hours left to enroll

762 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