Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How get private Device context GDI in QB64?
#1
Is it possible to get private GDI device context in QB64?

When working with OpenGL I need to use
HDC hDC = NULL - due to the subsequent call to the C BuildFont command (it is available in gdi32.dll, I have it declared, it works, and then I need to convert its output using the C SelectObject function to the Windows wglUseFontBitmaps function.

Analogously, it goes like this:

after all #include C calls:
HDC hDC = NULL;
.
.
.
CreateFont (-24, 0, 0, 0, FW_BOLD, FALSE, FALSE, FALSE, ANSI_CHARSET, OUT_IT_PRECIS, CLIP_DEFAULT_PRECIS, ANTIALIASED_QUALITY, FF_DONTCARE And DEFAULT_PITCH, "Courier New")

.
.
SelectObject(hDC, font%&)

.

wglUseFontBitmaps(hDC, 32, 96, base)
.
.
.
_gl statements
.
.


I found all the definitions, constants for all three C functions, but i must stop work, because i am not sure - i dont know how get hDC  device content. Is it possible under H file, or with next libraries, or this is not possible in QB64?


Reply


Messages In This Thread
How get private Device context GDI in QB64? - by Petr - 04-05-2023, 02:20 PM



Users browsing this thread: 5 Guest(s)