Original Post
Hey guys,
I''ve been trying for quite a while to implement a callback function for an edit control, so I can do stuff on mouse clicks and key presses, just like you use when you create a window[LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)]. The problem is that the edit class is already registered, and so you can''t set the callback function. (I''m using CreateWindowEx to create the edit box with the classname as "EDIT")
I''ve tried sub/superclassing, but it''s too messy and too dangerous(could crash the system if you don''t get to "un"subclass). I''ve tried getting the EDIT class info, and registering my own class based off of it, but was getting errors that didn''t make sense("The system cannot find the file specified" when calling CreateWindowEx with the new registered class).
Does anyone know of a better way to go about doing this?
I don''t want to use MFC as I am learning the Windows API, and want to stick with it.
I am using Dev-c++ if that makes a difference(don''t think so).
Thanks a bunch!
CD
Jesus is Lord!!