🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.graphics
Article #15

Re: Drawing from any procedure

#15
From: David Byrden
Date: Sat, 23 Mar 1996 02:54
15 lines
1090 bytes
esuvx@csv.warwick.ac.uk (Adge) wrote:

>I am programming in ms Visual C++ v.4.0 under Win95, and am trying to 
>persuade it to allow me to draw graphics to a window from a procedure other
>than OnPaint or OnDraw.
>
>I have tried using CPaintDC(this); , but this gives an access violation.


         First, you must tell us this; is your program multithreaded, and 
are you trying to draw in a thread other than the one that is allowed use 
MFC? I don't have the answer for you, but I know we need that information.


                        David
Technical Details
Message-ID: <4ivp4l$daf@nuacht.iol.ie>
Path: arc1-ca.pugleaf.net!newsfeed.internetmci.com!iol!usenet
References: <4iuni1$oep@lily.csv.warwick.ac.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!newsfeed.internetmci.com!iol!usenet
From: David Byrden <goyra@iol.ie>
Newsgroups: comp.os.ms-windows.programmer.graphics,comp.lang.c++
Subject: Re: Drawing from any procedure
Date: 23 Mar 1996 02:54:13 GMT
Organization: Ireland On-Line
Message-ID: <4ivp4l$daf@nuacht.iol.ie>
References: <4iuni1$oep@lily.csv.warwick.ac.uk>
NNTP-Posting-Host: dialup-318.dublin.iol.ie
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 1.22KIT (Windows; I; 16bit)