ArrayArrayArrayArrayArrayArray BrainModular BrainModular Users Forum 2009-09-14T23:50:59+02:00 https://brainmodular.com/forums/app.php/feed/topic/1714 2009-09-14T23:50:59+02:00 2009-09-14T23:50:59+02:00 https://brainmodular.com/forums/viewtopic.php?t=1714&p=10134#p10134 <![CDATA[scrollbars]]> Statistics: Posted by Gizzeta — 14 Sep 2009, 23:50


]]>
2009-09-14T19:48:56+02:00 2009-09-14T19:48:56+02:00 https://brainmodular.com/forums/viewtopic.php?t=1714&p=10131#p10131 <![CDATA[scrollbars]]>
good tip Martin!
I think it's should be a temporary hack
(I found this to be able to open a modless child window for a module, like the array set module)
actually no way to get the form handle.
We'll correct it in the next SDK release.
Yes, handle and/or instance of the module should be provided by usine. ;)
It's more secure and powerfull.

Statistics: Posted by martignasse — 14 Sep 2009, 19:48


]]>
2009-09-14T18:53:24+02:00 2009-09-14T18:53:24+02:00 https://brainmodular.com/forums/viewtopic.php?t=1714&p=10130#p10130 <![CDATA[scrollbars]]> Statistics: Posted by senso — 14 Sep 2009, 18:53


]]>
2009-09-14T18:48:15+02:00 2009-09-14T18:48:15+02:00 https://brainmodular.com/forums/viewtopic.php?t=1714&p=10129#p10129 <![CDATA[scrollbars]]>
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
Hi Gizzeta,

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:

HINSTANCE hInstModule = NULL;BOOL APIENTRY DllMain&#40; HMODULE hModule,                       DWORD  ul_reason_for_call,                       LPVOID lpReserved &#41;&#123;switch &#40;ul_reason_for_call&#41;&#123;case DLL_PROCESS_ATTACH&#58;        hInstModule = hModule;case DLL_THREAD_ATTACH&#58;case DLL_THREAD_DETACH&#58;case DLL_PROCESS_DETACH&#58;break;&#125;return TRUE;&#125;
with the HINSTANCE, you should be able to add child widgets.

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

Statistics: Posted by martignasse — 14 Sep 2009, 18:48


]]>
2009-09-14T16:06:24+02:00 2009-09-14T16:06:24+02:00 https://brainmodular.com/forums/viewtopic.php?t=1714&p=10128#p10128 <![CDATA[scrollbars]]> We'll correct it in the next SDK release.

Statistics: Posted by senso — 14 Sep 2009, 16:06


]]>
2009-09-12T18:33:50+02:00 2009-09-12T18:33:50+02:00 https://brainmodular.com/forums/viewtopic.php?t=1714&p=10107#p10107 <![CDATA[scrollbars]]>
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

Statistics: Posted by Gizzeta — 12 Sep 2009, 18:33


]]>
BrainModular BrainModular Users Forum 2009-09-14T23:50:59+02:00 https://brainmodular.com/forums/app.php/feed/topic/1714 2009-09-14T23:50:59+02:00 2009-09-14T23:50:59+02:00 https://brainmodular.com/forums/viewtopic.php?t=1714&p=10134#p10134 <![CDATA[scrollbars]]> Statistics: Posted by Gizzeta — 14 Sep 2009, 23:50


]]>
2009-09-14T19:48:56+02:00 2009-09-14T19:48:56+02:00 https://brainmodular.com/forums/viewtopic.php?t=1714&p=10131#p10131 <![CDATA[scrollbars]]>
good tip Martin!
I think it's should be a temporary hack
(I found this to be able to open a modless child window for a module, like the array set module)
actually no way to get the form handle.
We'll correct it in the next SDK release.
Yes, handle and/or instance of the module should be provided by usine. ;)
It's more secure and powerfull.

Statistics: Posted by martignasse — 14 Sep 2009, 19:48


]]>
2009-09-14T18:53:24+02:00 2009-09-14T18:53:24+02:00 https://brainmodular.com/forums/viewtopic.php?t=1714&p=10130#p10130 <![CDATA[scrollbars]]> Statistics: Posted by senso — 14 Sep 2009, 18:53


]]>
2009-09-14T18:48:15+02:00 2009-09-14T18:48:15+02:00 https://brainmodular.com/forums/viewtopic.php?t=1714&p=10129#p10129 <![CDATA[scrollbars]]>
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
Hi Gizzeta,

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:

HINSTANCE hInstModule = NULL;BOOL APIENTRY DllMain&#40; HMODULE hModule,                       DWORD  ul_reason_for_call,                       LPVOID lpReserved &#41;&#123;switch &#40;ul_reason_for_call&#41;&#123;case DLL_PROCESS_ATTACH&#58;        hInstModule = hModule;case DLL_THREAD_ATTACH&#58;case DLL_THREAD_DETACH&#58;case DLL_PROCESS_DETACH&#58;break;&#125;return TRUE;&#125;
with the HINSTANCE, you should be able to add child widgets.

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

Statistics: Posted by martignasse — 14 Sep 2009, 18:48


]]>
2009-09-14T16:06:24+02:00 2009-09-14T16:06:24+02:00 https://brainmodular.com/forums/viewtopic.php?t=1714&p=10128#p10128 <![CDATA[scrollbars]]> We'll correct it in the next SDK release.

Statistics: Posted by senso — 14 Sep 2009, 16:06


]]>
2009-09-12T18:33:50+02:00 2009-09-12T18:33:50+02:00 https://brainmodular.com/forums/viewtopic.php?t=1714&p=10107#p10107 <![CDATA[scrollbars]]>
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

Statistics: Posted by Gizzeta — 12 Sep 2009, 18:33


]]>