[comp.windows.ms.programmer] Bitmap troubles

magid@sandstorm.Berkeley.EDU (Paul Magid) (04/22/91)

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