http://bugs.winehq.org/show_bug.cgi?id=3637
Summary: dialog: no wm_paint message at first draw Product: Wine Version: 20050930 Platform: Other OS/Version: other Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-user AssignedTo: wine-bugs@winehq.org ReportedBy: T.Bonner@freesurf.ch
In a program I want to create a (modal) dialog (like in petzold), but additionaly I've inserted in the message handler code to draw something when WM_PAINT is received (besides other things defined in the resource file). with wine this wm_paint code isn't called at the very first startup of the dialog, but afterwards (e.g. at repainting) all is ok. e.g. (handle messages of the given dialog) case WM_PAINT: hdc = GetDC (hDlg); /* draw something */ ReleaseDC (hDlg, hdc); break;