OHPen
February 5th, 2008, 10:46
hey guys,
again i have to bother you with another gui question. i have an edit field which resides on my window. i try to capture WM_LMOUSEBUTTONDOWN message in order to active the edit field by double clicking on it.
the problem is now that the event is not triggered if i click on the edit field, only if i click somewhere on the dialog where no component is placed.
therefore i thought about makeing my own windowproc for the edit field.
i searched msdn and the api which i found is SetWindowLong
http://msdn2.microsoft.com/en-us/library/ms633591.aspx
If i use GWL_WNDPROC is it possible to assign a pointer to my own windowproc ????
i have never done this before so before i refactor my code i want to know if it works.
thx in advance,
OHPen
again i have to bother you with another gui question. i have an edit field which resides on my window. i try to capture WM_LMOUSEBUTTONDOWN message in order to active the edit field by double clicking on it.
the problem is now that the event is not triggered if i click on the edit field, only if i click somewhere on the dialog where no component is placed.
therefore i thought about makeing my own windowproc for the edit field.
i searched msdn and the api which i found is SetWindowLong
http://msdn2.microsoft.com/en-us/library/ms633591.aspx
If i use GWL_WNDPROC is it possible to assign a pointer to my own windowproc ????
i have never done this before so before i refactor my code i want to know if it works.
thx in advance,
OHPen