将CTabCtr类控件关联到窗口。关联几个按扭控件

解决方案 »

  1.   

    自己顶下!因为应用程序初始化时,那个主窗口是CreateWindow(.....)产生,怎么在这个窗口中关联些控件呢?这个变量用什么类型来定义?
      

  2.   

    你的控件也用cteate生成啊,具体什么控件去查相关的控件的cteate方法再通过command消息获取控件的相关消息即可
      

  3.   

    在WM_INITDIALOG消息的处理部分用CreateWindow创建控件,不过要去查有关控件的类名
      

  4.   

    The following predefined control classes can be specified in the lpClassName parameter. Note the corresponding control styles you can use in the dwStyle parameter. Class Meaning 
    BUTTON Designates a small rectangular child window that represents a button the user can click to turn it on or off. Button controls can be used alone or in groups, and they can either be labeled or appear without text. Button controls typically change appearance when the user clicks them. For more information, see Buttons.  
     For a table of the button styles you can specify in the dwStyle parameter, see Button Styles.  
    COMBOBOX Designates a control consisting of a list box and a selection field similar to an edit control. When using this style, an application should either display the list box at all times or enable a drop-down list box. If the list box is visible, typing characters into the selection field highlights the first list box entry that matches the characters typed. Conversely, selecting an item in the list box displays the selected text in the selection field. For more information, see Combo Boxes.  
     For a table of the combo box styles you can specify in the dwStyle parameter, see Combo Box Styles.  
    EDIT Designates a rectangular child window into which the user can type text from the keyboard. The user selects the control and gives it the keyboard focus by clicking it or moving to it by pressing the tab key. The user can type text when the edit control displays a flashing caret; use the mouse to move the cursor, select characters to be replaced, or position the cursor for inserting characters; or use the backspace key to delete characters. For more information, see Edit Controls.  
     For a table of the edit control styles you can specify in the dwStyle parameter, see Edit Control Styles.  

    好像没有找到我要的类。TabCtrl.是不是Tab Controls(在MSDN找到的)这个Tab就是TabCtrl?