Xref: utzoo comp.windows.ms.programmer:2002 comp.lang.pascal:6291 Path: 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 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