Professional UI Solutions
Site Map   /  Register
 
 

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.

Forums » Prof-UIS Tech Support » CExtGridWnd::OnGridCellInplaceControlTextInputVerify() don't be called while edit Collapse All
Subject Author Date
Vincent Lin Feb 1, 2007 - 4:55 AM

I derive one CExtGridWnd class , and override it’s OnGridCellInplaceControlTextInputVerify().
but this member function don’t be called while edit the cell (derived from CExtGridCellString), why ?

and I also override OnGridCellInplaceControlTextInputComplete(), this function has be called,
but the edit result always be saved whether the parameter bSaveChanges is true of false.

Technical Support Feb 1, 2007 - 5:32 AM

Please check if the signature of the overridden method in scope of your class is correct and exactly the same as:

    virtual bool OnGridCellInplaceControlTextInputVerify(
        const CExtGridCell & _cell,
        HWND hWndInplaceControl,
        LONG nVisibleColNo,
        LONG nVisibleRowNo,
        LONG nColNo,
        LONG nRowNo,
        INT nColType,
        INT nRowType,
        __EXT_MFC_SAFE_LPCTSTR sTextInitial,
        __EXT_MFC_SAFE_LPCTSTR sTextPrevious,
        CExtSafeString & sTextNew,
        bool bEndEdit
        );
After that, please note that adding virtual methods to the debug version of the project sometimes requires the project to be completely rebuilt. So rebuild your project completely and check again if the method is invoked while editing grid cell’s text value.