-
** Never mind :) it works :)
So I understand that the OriginalEditProc stands for the Edit Proc in general and not specific per editbox control, right?
--------
One problem, how do i keep track of the OriginalEditProc values.
If i have more than one editbox control i would like to change, can i use only one Proc?
Code:
LRESULT CALLBACK MyEditBoxProc(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam)
{
if (Msg == WM_CHAR)
if (wParam == VK_TAB) {
SetFocus(GetNextDlgTabItem(GetParent(hwnd), hwnd, 0));
return 0;
}
return CallWindowProc(OriginalEditProc, hwnd, Msg, wParam, lParam);
}
-
One last question, if we are on the WS_TABSTOP subject. :)
Should the style work on owner drawn buttons?
-
>> Should the style work on owner drawn buttons?
It does, but you may have to draw the focus rectange yourself (or whatever method you use to indicate focus).
gg