Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

about CM_MOUSEENTER and CM_MOUSELEAVE

Status
Not open for further replies.

zallen

Programmer
Aug 10, 2000
227
CN
TMyImgButton = class(TGraphicControl)
private
......
procedure CMMouseEnter(var Msg : TMessage);message CM_MOUSEENTER;
procedure CMMouseLeave(var Msg : TMessage);message CM_MOUSELEAVE;
........
protected
public
end;
......
The above code is a code snippet from a component.When i use the component in a exe application,it works fine meaning it can receive mouse enter and leave events.But when i use it in a dll application the enter/leave messages can not be gotten!

pleqse tell me why it happens! i know the CM_MOUSEENTER and CM_MOUSELEAVE are not standard windows message but i really want to know how i can feel the mouse enter and leave events in my component.

Any suggestions are appreciated!
I want to emigrate Canada or Australia. Any relative information you supplied will be appreciated!

zallen@cmmail.com
ICQ:101229409
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top