Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!janus.Berkeley.EDU!kipnis From: kipnis@janus.Berkeley.EDU (Gary Kipnis) Newsgroups: comp.windows.ms Subject: drawing inside dialog boxes Message-ID: <33325@ucbvax.BERKELEY.EDU> Date: 20 Dec 89 05:03:39 GMT Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: kipnis@janus.Berkeley.EDU (Gary Kipnis) Organization: University of California, Berkeley Lines: 14 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