How To Create Window with CreateWindowEx ?

Miscellaneous Forums/Win32 Discussion/How To Create Window with CreateWindowEx ?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

this is how i do it in winblitz3d. you shold be able to convert this easy.


Function OpenFont(fontname$,width=12,height=8,bold=0,italic=0,underline=0)
	
	font = apiCreateFont(width,height,0,0,bold,underline,0,0,0,0,0,0,0,GRAB_StringAddr(fontname$))
	Return font 

End Function

Function Usefont(gadget,font)

	hdc = apiGetWindowDC(gadget)
	hfontprev = apiSelectObject(hdc,font)
	
	apiSendMessage gadget,WM_SETFONT,apiSelectObject(hdc,font),1
		
End Function



kev