--
Jason Wallace
SL Software
Dar...@SLSoftware.reno.nv.us
--
"We are Microsoft. Resistance is Futile. You will be assimilated."
Frank Cheng wrote in message <01bd13a9$3b19f6c0$0ec0020a@default>...
You need to create an owner drawn menu. To do this, you need to process
WM_MEASUREITEM and WM_DRAWITEM messages in the window that owns the popup
menu. I'm not sure about Delphi 2, but there are enough similarities
between the code in Delphi 1 and 3 to assume this is correct:
Delphi creates an internal list, called PopupList, of all popup menus. They
are all owned by a single window. In the Popup method, Delphi calls
TrackPopupMenu or TrackPopupMenuEx to display the popup menu and assign an
owner window. To be able to handle menu messages, you need to override the
Popup method, assign an owner window you create, and in that window's
message procedure handle the WM_DRAWITEM and WM_MEASUREITEM messages, as
well as reproduce the default processing performed by Delphi.
--
Yorai Aminov
El-On Software Systems
http://ourworld.compuserve.com/homepages/yaminov
just an idea =)
Shane Bridges
kinetic1@ix..netcom.com