Solved

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

Posted on 1997-12-16
4
568 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

791 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