Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

GET A BITMAP HANDLE

kooka
Beginner
316 Views

hi everyone:

Im writing a program in a mixed form using quickwin and win32, the point is thath i want to use a command that needs one of the parameters of the Win Main function thah is a part of every win32 program, the problem is that i started my program in quickwin and now im using win32 functions, because of that i don't have WinMain function and i need to know theHINSTANCEparameter to put in another win32 functionknow the handle of an image and then put it in a button, this is the function that i want to use:

hblank = LoadBitmap(ghInstance, &
MAKEINTRESOURCE(IDB_blank))

the question is how can i get the ghinstance value or instead of that, how cani get the handle to that image.

TANKS FOR YOUR ANSWERS!!

0 Kudos
2 Replies
onkelhotte
New Contributor II
316 Views

ghInstance = GetModuleHandle(NULL)

is your friend. That gets you the Handle of the main QuickWin Process.

Markus

0 Kudos
kooka
Beginner
316 Views
tanks buddie!, i already try it, and it works!
0 Kudos
Reply