Exemple #1
0
        private void listView_records_SelectedIndexChanged(object sender, EventArgs e)
        {
#if NO
            API.MSG msg = new API.MSG();
            bool bRet = API.PeekMessage(ref msg,
                this.Handle,
                (uint)WM_SELECT_INDEX_CHANGED,
                (uint)WM_SELECT_INDEX_CHANGED,
                0);
            if (bRet == false)
                API.PostMessage(this.Handle, WM_SELECT_INDEX_CHANGED, 0, 0);


            /*
            // 清除以前累积的消息
            while (API.PeekMessage(ref msg,
                this.Handle,
                (uint)WM_SELECT_INDEX_CHANGED,
                (uint)WM_SELECT_INDEX_CHANGED,
                API.PM_REMOVE)) ;
            API.PostMessage(this.Handle, WM_SELECT_INDEX_CHANGED, 0, 0);
            */
#endif

            // this.commander.AddMessage(WM_SELECT_INDEX_CHANGED);
            this.TriggerSelectedIndexChanged();
        }
Exemple #2
0
        // int m_nInSelectedIndexChanged = 0;

        private void listView_records_SelectedIndexChanged(object sender, EventArgs e)
        {
#if NO
            API.MSG msg = new API.MSG();
            bool bRet = API.PeekMessage(ref msg,
                this.Handle,
                (uint)WM_SELECT_INDEX_CHANGED,
                (uint)WM_SELECT_INDEX_CHANGED,
                0);
            if (bRet == false)
                API.PostMessage(this.Handle, WM_SELECT_INDEX_CHANGED, 0, 0);
#endif
            OnListViewSelectedIndexChanged(sender, e);
        }