🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms
Article #13863

drawing inside dialog boxes

#13863
From: Gary Kipnis
Date: Wed, 20 Dec 1989 05:03
14 lines
811 bytes
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
Technical Details
Message-ID: <33325@ucbvax.BERKELEY.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!janus.Berkeley.EDU!kipnis

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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