ListBox control vs ComboBoxListBox可以選擇多行ComboBox類似ListBox和Edit的組合,比ComboBox節省大小。ComboBox可以設定成三種狀態,Simple(此時類似於ListBox),Drop-down(節省空間的ListBox),Drop-down
HKCRAbbreviation for HKEY_CLASSES_ROOTHKCUAbbreviation for HKEY_CURRENT_USERHKLMAbbreviation for HKEY_LOCAL_MACHINEHKUAbbreviation for HKEY_USERSHKRRelative root − that is, keys specified using this abbreviation are relative to the registry key
CWindow封裝了Windows的大部分API,且CWindows只有一個變數m_hWnd。還有一個類是CWindowImpl,它封裝了class registration、 window subclassing、 message maps、和 一個基本的WindowProc()。The WTL classes can be divided into a few major categories:Frame window implementation - CFrameWindowImpl,
The operating system, drivers, and device installation components store information about drivers and devices in the registry. In general, drivers and device installation components should use the registry to store data that must be maintained
1.Registry Key Object RoutinesA driver can manipulate a registry-key object by performing the following steps:Open a handle to the registry-key object. For more information, see Opening a Handle to a Registry-Key Object. Perform the intended
The following trees in the registry are of particular interest to driver writers (where HKLM represents HKEY_LOCAL_MACHINE):The HKLM\SYSTEM\CurrentControlSet\Services TreeThe HKLM\SYSTEM\CurrentControlSet\Control TreeThe
第一個例子此例子位於G:\Samples\VC98\sdk\com\oleaut\hello裡面有兩個目錄hello(ActiveX代碼),另一個目錄是hellctrl(C++測試代碼)。ActiveX Control在使用前,需要註冊一下。註冊檔案需要修改一下exe和tlb檔案的路徑,必須使用絕對路徑。註冊以後即可使用。還可以編寫一個VB測試程式。在VB6中點擊菜單“工具”=>“引用”,點擊ActiveX產生的TLB檔案。Dim HelloObj As IHelloSub
1.Owner Draw當Button控制項被設定成OwnerDraw屬性時,父表單就會接受到WM_DRAWITEM、WM_MEASUREITEM、WM_COMPAREITEM、WM_DELETEITEM四個訊息。除了Button空間外,還有ListBox控制項設定CBS_OWNERDRAWVARIABLE屬性。The WM_DRAWITEM message is sent to the owner window of an owner-drawn button, combo box,