Path: utzoo!utgpu!jarvis.csri.toronto.edu!torsqnt!tmsoft!masnet!canremote!kipnis@janus.berkeley.edu From: kipnis@janus.berkeley.edu@canremote.uucp (kipnis@janus.Berkeley.EDU) Newsgroups: comp.windows.ms Subject: Re: drawing inside dialog box Message-ID: <89122504121422@masnet.uucp> Date: 21 Dec 89 05:04:00 GMT Organization: Canada Remote Systems Limited, Mississauga, ON, Canada Lines: 22 From: kipnis@janus.Berkeley.EDU (Gary Kipnis) Subj: drawing inside dialog boxes Orga: University of California, Berkeley Hi, is it possible to draw inside a dialog box, i.e. I want to draw a blue rectangle inside a dialog box and change its color according to dialog commands, but for some reason every time I try to draw it I get nothing, here is what I do: case WM_INITDIALOG: hDC = GetDC(hDlg); . . Rectangle(hDC, x1, y1, x2, y2); Thank you, gary --- * Via MaSNet/HST96/HST144/V32 - UN PC Windowing Systems * Via Usenet Newsgroup comp.windows.ms