Hi,
I would like to use windows scrollbar in my display module.
I need the handle to the module's window to set it...
How can i get it?
Or there's maybe another way?
thanks
scrollbars
actually no way to get the form handle.
We'll correct it in the next SDK release.
We'll correct it in the next SDK release.
Olivier Sens
www.brainmodular.com
www.brainmodular.com
-
martignasse
- Site Admin
- Posts: 611
- Location: Lyon, FRANCE
- Contact:
Hi Gizzeta,Gizzeta wrote:Hi,
I would like to use windows scrollbar in my display module.
I need the handle to the module's window to set it...
How can i get it?
Or there's maybe another way?
thanks
It's funny that recently, i was testing some things around that.
It's possible to store the HINSTANCE of the module in a global variable by adding a DllMain function in the cpp file, like that :
Code: Select all
HINSTANCE hInstModule = NULL;
BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
hInstModule = hModule;
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}The big limitation of this hack is it's using global variable, so limiting you to one instance of you'r module in usine
Hope it help
Martin FLEURENT - Usine Developer - SDK maintainer
good tip Martin!
Olivier Sens
www.brainmodular.com
www.brainmodular.com
-
martignasse
- Site Admin
- Posts: 611
- Location: Lyon, FRANCE
- Contact:
I think it's should be a temporary hacksenso wrote:good tip Martin!
(I found this to be able to open a modless child window for a module, like the array set module)
Yes, handle and/or instance of the module should be provided by usine.senso wrote:actually no way to get the form handle.
We'll correct it in the next SDK release.
It's more secure and powerfull.
Martin FLEURENT - Usine Developer - SDK maintainer
Who is online
Users browsing this forum: No registered users and 28 guests
