🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Drawing from any procedure

#14
From: Adge
Date: Fri, 22 Mar 1996 17:21
26 lines
1316 bytes
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.

It used to be possible under Borland Pascal for win but I can't work out
how to do it under visc++

Can anyone help ?

Regards

Adge

----------------------------------------------------------------------------
Adrian Davis, 4th Year Engineering Electronics Beng (hons) Meng.
A.P.M.Davis@warwick.ac.uk
----------------------------------------------------------------------------
Back by popular request :
When God designed the human body, why did he put the ignition so near the 
exhaust ?
----------------------------------------------------------------------------
Warwick Uni Fencing Club (suaao) WWW - http:/www.csv.warwick.ac.uk/~suaao/
----------------------------------------------------------------------------
Technical Details
Message-ID: <4iuni1$oep@lily.csv.warwick.ac.uk>
Path: arc1-ca.pugleaf.net!usenet.eel.ufl.edu!warwick!not-for-mail

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!usenet.eel.ufl.edu!warwick!not-for-mail
From: esuvx@csv.warwick.ac.uk (Adge)
Newsgroups: comp.os.ms-windows.programmer.graphics,comp.lang.c++
Subject: Drawing from any procedure
Date: 22 Mar 1996 17:21:05 -0000
Organization: University of Warwick, Coventry, UK
Message-ID: <4iuni1$oep@lily.csv.warwick.ac.uk>