|
|
|
|
Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Tiago Gehring
|
Aug 11, 2004 - 3:04 PM
|
Hi, I’m using Profuis 2.25 freeware, it’s really a great library! I had some problems with CExtRadioButton (assertions and some strange behaviour - after calling UpateData () twice check information was lost) and made some minor alterations to CExtButton.cpp that solved both problems:
LRESULT CExtRadioButton::WindowProc(UINT message, WPARAM wParam, LPARAM lParam) { if( message == BM_SETCHECK && wParam == BST_CHECKED // added) _UncheckRadioButtonsInGroup(); if (message == WM_GETDLGCODE) // added return DLGC_RADIOBUTTON; return CExtCheckBox::WindowProc( message, wParam, lParam ); }
I don’t know if this is correct, I just wanted to report this as it worked for me! Thanks a lot,
Tiago Gehring tiagog@weg.com.br
|
|
Technical Support
|
Aug 13, 2004 - 1:06 AM
|
Thank you for the bug report. We already received a number of feedbacks on this problem and we decided on this version of WindowProc :LRESULT CExtRadioButton::WindowProc(UINT message, WPARAM wParam,
LPARAM lParam)
{
if( message == WM_GETDLGCODE )
{
LRESULT lResult =
CExtCheckBox::WindowProc( message, wParam, lParam );
lResult |= DLGC_RADIOBUTTON;
return lResult;
} // if( message == WM_GETDLGCODE )
if( message == BM_SETCHECK )
_UncheckRadioButtonsInGroup();
return
CExtCheckBox::WindowProc( message, wParam, lParam );;
}
|
|