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 |
|
nguyen hieu
|
Mar 26, 2008 - 10:43 PM
|
i have create a CExtComboBox m_cbKeyword in m_wndFilterBar : m_cbKeyword.Create(WS_CHILD|WS_VISIBLE|WS_CLIPCHILDREN|CBS_DROPDOWN|CBS_HASSTRINGS,CRect(51,0,415,20),&m_wndFilterBar,ID_KEYWORD_COMBO_BOX But there r 2 problem i met: 1. if i don’t insert ON_COMMAND(ID_KEYWORD_COMBO_BOX, OnKeywordComboBox) in MessageMap,so CExtComboBox was disabled; 2.if i insert ON_COMMAND(ID_KEYWORD_COMBO_BOX, OnKeywordComboBox),it enable,but when i type something in,ex:a,b,c,so immediately it crash. Someone can help me. Best Regards, sorciere_vn
|
|
Timo Stripf
|
May 26, 2008 - 2:30 AM
|
I have the same Problem. You can reproduce this, if you compile the UNICODE MFC DLL version of Prof-UIS Studio and then you type some characters into the searchbox which is located in the toolbar.
|
|
Sorciere vn
|
Apr 6, 2008 - 7:45 PM
|
sorry because i don’t talk more details . Error occurs at ASSERT(pEdit != NULL),after CEdit * pEdit = (CEdit*)GetInnerEditCtrl(); command.I am using prof-UIS proffessional v2.82 & use WinXP 32-bit.Also e build in ANSI debug mode. Regards, sorciere_vn
|
|
Technical Support
|
Apr 10, 2008 - 7:28 AM
|
Unfortunately we still cannot repeat the crash and say what’s wrong. Is the crash exist in some of our samples? Or would you send us your project?
|
|
Sorciere vn
|
Apr 2, 2008 - 9:17 PM
|
First of all,thanks 4 ur reply about question 2,i used Prof-UIS professional v2.82,and i create a Combo Box through question 1.It’s Ok in release mode,however it crash when i type something in combo box in debug mode,here is call stack when it occurs : NTDLL! 7c901230()
_CrtDbgReport(int 2, const char * 0x00d18ac4 THIS_FILE, int 2426, const char * 0x00000000, const char * 0x00000000) line 353
AfxAssertFailedLine(const char * 0x00d18ac4 THIS_FILE, int 2426) line 39 + 20 bytes
CExtComboBoxBase::WindowProc(unsigned int 1148, unsigned int 1, long 0) line 2426 + 21 bytes
CExtComboBox::WindowProc(unsigned int 1148, unsigned int 1, long 0) line 3875
AfxCallWndProc(CWnd * 0x0033cc68 {CExtComboBox hWnd=???}, HWND__ * 0x00050d5a, unsigned int 1148, unsigned int 1, long 0) line 215 + 26 bytes
AfxWndProc(HWND__ * 0x00050d5a, unsigned int 1148, unsigned int 1, long 0) line 379
AfxWndProcBase(HWND__ * 0x00050d5a, unsigned int 1148, unsigned int 1, long 0) line 220 + 21 bytes
USER32! 77d48709()
USER32! 77d487eb()
USER32! 77d489a5()
USER32! 77d489e8()
USER32! 77d6ea3b()
USER32! 77d5688a() The related code is : CEdit * pEdit = (CEdit*)GetInnerEditCtrl();
ASSERT( pEdit != NULL );
ASSERT_VALID( pEdit );
if( pEdit != NULL )
pEdit->SetRedraw( FALSE );
if( m_wndPopupListBox.m_hWnd != NULL
&& ::IsWindow( m_wndPopupListBox.m_hWnd )
)
{
CListBox * pListBox = ( CListBox * ) &m_wndPopupListBox;
pListBox->SetCurSel( nResult );
} Can u tell me Why ,and how i edit ? Best regards, sorciere_vn
|
|
Technical Support
|
Apr 5, 2008 - 9:53 AM
|
We need more details. At which line exactly the ASSERT occurs? What Prof-UIS configuration you are using, Unicode, ANSI, MBCS, 32-bit, 64-bit? Your OS?
|
|
Technical Support
|
Apr 2, 2008 - 5:58 AM
|
1) When a combo box or any other control is placed in a toolbar, its enabled/disabled state is controlled by the MFC command updating mechanism. So you should provide the corresponding command with a ON_COMMAND or ON_COMMAND_UPDATE_UI handler.
2) We cannot reproduce the crash. Would you send us the call stack when it occurs?
|
|