例如在定义窗口类的时候,C语言里面必须写成: wcex.style = (UINT)NULL; 但C++里面可以直接写: wcex.style = NULL;
CreateWindow函数也是一样。 C: hwndCombo = CreateWindow(WC_COMBOBOX, NULL, WS_CHILD | WS_VISIBLE |
CBS_DROPDOWNLIST, 10, 160, 200, (int)NULL, hWnd, NULL, hInst, NULL); C++: hwndCombo = CreateWindow(WC_COMBOBOX, NULL, WS_CHILD | WS_VISIBLE |
CBS_DROPDOWNLIST, 10, 160, 200, NULL, hWnd, NULL, hInst, NULL);
|