I explain my problem.
I wanna make a ticker effect in a edittext field that is in a dialogbox.
Something like this:
o
lo
llo
ello
Hello etc.
Now the problem is that as long as you didnt get out of the case IDOK: you wont see anything.
You only gonna see the (whole) last phrase printed.
Now pure logic tells me that i should call IDOK with sendmessage in a loop.
But if i recall it im never gonna get out of it so its an infinite loop.
Im sure this problem has been solved already i just couldnt find it.
Code:BOOL CALLBACK DlgProc2 (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { case WM_INITDIALOG : return TRUE ; case WM_COMMAND : switch (LOWORD (wParam)) { case IDOK : Scrolling(hDlg) ; return TRUE ; case IDCANCEL : EndDialog (hDlg, 0) ; return TRUE ; } break ; } return FALSE ; }




Reply With Quote