CWnd::SetDlgCtrlID 函数

    技术2022-05-20  31

    CWnd::SetDlgCtrlID int   SetDlgCtrlID(   int   nID   ); Return   Value The   previous   identifier   of   the   window,   if   successful;   otherwise   0. 如果成功,则返回窗口以前的标识符;否则返回0。   Parameters nID The   new   value   to   set   for   the   control’s   identifier. 被设为控件标识符的新值。   Remarks Sets   the   window   ID   or   control   ID   for   the   window   to   a   new   value.   The   window   can   be   any   child   window,   not   only   a   control   in   a   dialog   box.   The   window   cannot   be   a   top-level   window. 这个函数将窗口的窗口ID或控制ID设为新值。这里的窗口可以是任何子窗口,不仅是对话框中的控件。这种窗口不能是顶层窗口。

     

    可在view的切换时,使用这个函数。


    最新回复(0)