PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Events occurring when PPC is turn on or off.

I would like have some code run when the PPC is powered on or off. I know this can be done by overriding the WindowProc Event and capturing events. However, when I override it, none of the built in events fire off. I can't find an example of how to properly override this. If there is an existing event that accomplishes this, that would also be useful.
kurioszyn · 10 Sep 2002, 19:26 UTC — WindowProc
In your CGapiApplication derived class in the method that overrides WindowProc try putting this at the end of your method ( only if your method does not handle the event)
CGapiApplication::WindowProc(hWnd,msg,wParam,lParam);

Basically, this will forward any events your method does not handle to the default CGapiApplication WindowProc handler.
Thanks. Duh, I should have thought of that.