Article View: comp.windows.ms.programmer
Article #2206Bitmap troubles
From: Paul Magid
Date: Sun, 21 Apr 1991 20:23
Date: Sun, 21 Apr 1991 20:23
39 lines
1207 bytes
1207 bytes
From the little that I can get from the tpw manuals the following should work:
[I am trying to write a segment of code that will load a bitmap to the center
of the screen while the rest of the program is loaded and set up. {Much like
tpw or pagemaker}]
(*--------------------------code begins--------------------------------*)
program oski;
{$R c:\tpw\dev\oski.res}
uses
winprocs,wintypes;
var
Hmybit:Thandle;
hMemDC:HDC;
begin
HMyBit:=LoadBitmap(HInstance,'OSKI');
SelectObject(hMemDC, HMyBit);
Rectangle(hMemDC,20,20,400,400);
{DeleteObject(Hmybit);}
end.
(*--------------------------------code end------------------------*)
Any help will be appreciated.
Paul
Technical Details
Message-ID:
<1991Apr21.202314.16442@agate.berkeley.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uwm.edu!bionet!agate!sandstorm.Berkeley.EDU!magidShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uwm.edu!bionet!agate!sandstorm.Berkeley.EDU!magid From: magid@sandstorm.Berkeley.EDU (Paul Magid) Newsgroups: comp.windows.ms.programmer,comp.lang.pascal Subject: Bitmap troubles Message-ID: <1991Apr21.202314.16442@agate.berkeley.edu> Date: 21 Apr 91 20:23:14 GMT Sender: root@agate.berkeley.edu (Charlie Root) Organization: ucb Lines: 39