Help DLL
-
i have checkbox... i want when i check my checkbox,my DLL know that i checked someone have solution? thanks so much
-
i have checkbox... i want when i check my checkbox,my DLL know that i checked someone have solution? thanks so much
The checkbox checked notification is sent to the parent dialog of the checkbox. You will need to call some method in the DLL when you get this check event. The event is
BN_CLICKED
.«_Superman_» _I love work. It gives me something to do between weekends.
-
i have checkbox... i want when i check my checkbox,my DLL know that i checked someone have solution? thanks so much
I elaborate just a bit the good Superman's answer. The
CheckBox
'check' is aGUI
event and should be handled by theGUI
code (as Superman already suggested, you typically handle theBN_CLICKED
notification code of theWM_COMMAND
message in the parent window of theCheckBox
control). The best way to 'notify something' to aDLL
is calling aDLL
's function. So:- Define a
DLL
function, e.g.OnMyCheck()
. - In the parent window of the
CheckBox
control handle theWM_COMMAND
message: onBN_CLICKED
notification coming from theCheckBox
control call in turn theDLL
's functionOnMyCheck
.
:)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] - Define a
-
I elaborate just a bit the good Superman's answer. The
CheckBox
'check' is aGUI
event and should be handled by theGUI
code (as Superman already suggested, you typically handle theBN_CLICKED
notification code of theWM_COMMAND
message in the parent window of theCheckBox
control). The best way to 'notify something' to aDLL
is calling aDLL
's function. So:- Define a
DLL
function, e.g.OnMyCheck()
. - In the parent window of the
CheckBox
control handle theWM_COMMAND
message: onBN_CLICKED
notification coming from theCheckBox
control call in turn theDLL
's functionOnMyCheck
.
:)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]both good answers, my 5 to both. :)
- Define a
-
The checkbox checked notification is sent to the parent dialog of the checkbox. You will need to call some method in the DLL when you get this check event. The event is
BN_CLICKED
.«_Superman_» _I love work. It gives me something to do between weekends.
i understand your idea but i don't know how make it.. can you write a sample ( function GetEvent) for me? or any document to understand it... thanks Hans :) :)
-
I elaborate just a bit the good Superman's answer. The
CheckBox
'check' is aGUI
event and should be handled by theGUI
code (as Superman already suggested, you typically handle theBN_CLICKED
notification code of theWM_COMMAND
message in the parent window of theCheckBox
control). The best way to 'notify something' to aDLL
is calling aDLL
's function. So:- Define a
DLL
function, e.g.OnMyCheck()
. - In the parent window of the
CheckBox
control handle theWM_COMMAND
message: onBN_CLICKED
notification coming from theCheckBox
control call in turn theDLL
's functionOnMyCheck
.
:)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]thanks so much :)
- Define a