0
J'ai créé un skin dans VC++ via l'API win32. Maintenant, je veux ajouter des contrôles aux skins. Comment cela peut il etre accompli?Comment ajouter des contrôles aux skins dans l'API win32
J'ai créé un skin dans VC++ via l'API win32. Maintenant, je veux ajouter des contrôles aux skins. Comment cela peut il etre accompli?Comment ajouter des contrôles aux skins dans l'API win32
En utilisant le code suivant, c'est un bouton avec une image en mode point.
hButton = CreateWindow ("BUTTON", "", WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON | WS_TABSTOP | WS_TABSTOP |WS_EX_OVERLAPPEDWINDOW | BS_BITMAP| BS_FLAT|EDGE_SUNKEN,
175, 135, B_width1, B_height1, hWnd, (HMENU)IDB_BUTTON_WOPEN,
((LPCREATESTRUCT) lParam)->hInstance, NULL);
/* Set the button image */
SendMessage(hButton[7], BM_SETIMAGE, IMAGE_BITMAP,
(LPARAM)LoadBitmap(hInst, MAKEINTRESOURCE(IMG_BITMAP7)));