IonicWind Software

Aurora Compiler => GUI => Topic started by: Zen on January 05, 2006, 06:52:09 AM

Title: Message Hooks
Post by: Zen on January 05, 2006, 06:52:09 AM
Hello. Ive had a look throught the Platform SDK about using hooks. Im not sure what type of hook i need and which messages i need to listen to...

Im trying to listen for when a button is created, destroyed, mouse over, mouse out. I have to use hooks rather than normal sub-classing. Does anyone know which type of hook and the message constants i need?

Thanks
Lewis

Edit: I want to be able to re-draw the button (background border etc)
Title: Re: Message Hooks
Post by: Parker on January 05, 2006, 08:31:53 AM
If drawing the button is the only thing you want, override the OnDrawButton or whatever it's called, providing the ABS_OWNERDRAW flag when you create it. Then you'll have to handle all the nice wonderful stuff that windows gives you :). And all those messages can be listened for with subclassing, and possibly changes to the window's (button's) style.

Are you trying to make a nice XP-ish looking button ;)?
Title: Re: Message Hooks
Post by: Zen on January 05, 2006, 08:55:30 AM
Well im trying to make it so that i can manipulate every button of a certain kind throughout my application without having to sub-class directly. i want to be able to call the function from a static lib to automaticly modify the buttons when they are created.

Lewis