- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!!
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ghInstance = GetModuleHandle(NULL)
is your friend. That gets you the Handle of the main QuickWin Process.
Markus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page