April 24th, 2013, 02:08 PM
I'm trying to disable all items in the control. I have multiple dialogs in my application and I need to provide a generic solution that will disable all items in any Arjay:
CCheckListBox in any of...
April 24th, 2013, 01:38 PM
Apologies for the delay in responding...
The strings are added in my code but I want to create a generic solution that can be used by all dialogs to reduce maintenance and risk of coding error.
...
April 19th, 2013, 09:01 PM
Correct, I want to disable all items. I already tried setting up a for loop when I intercept the LB_ADDSTRING message but the item hasn't been added to the list at this point so it isn't included in...
April 19th, 2013, 07:08 PM
I need to be able to disable the items on a CCheckListBox but I can't change the code that calls AddString. I know I can use the CCheckListBox::Enable function to disable an item if I have an index...
April 10th, 2013, 11:34 AM
Wow, not sure how I missed that! Thank you again!
April 10th, 2013, 11:15 AM
One last question...
Is it possible to modify the parameters of the CWPSTRUCT pointer in the callback function's lParam parameter and have it affect the parameter passed to the control with the...
April 10th, 2013, 09:44 AM
Ah, yes. I definitely missed that part. I've updated the callback function and am now getting the messages. Thank you!!
LRESULT CALLBACK HookProc(int nCode, WPARAM wParam, LPARAM lParam)
{...
April 9th, 2013, 06:06 PM
GCDEF - I tried overriding PreTranslateMessage in the base dialog class (and in the derived dialog class) and the WM_ENABLE messages are not received.
VictorN - My goal is to avoid implementing...
April 8th, 2013, 02:30 PM
If it is possible, I'd like to know how to intercept messages sent to controls on a dialog.
I'm working on a large application with a large number of dialogs, each with a number of controls on...