Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question#define UNICODE //..... HWND hStatic=CreateWindow(TEXT("STATIC"),...... HFONT hFont; hFont=CreateFont(16,0,0,0,0,0,0,0,0,0,0,0,0,TEXT("Arial")); SendMessage(hStatic,WM_SETFONT,(WPARAM)hFont,1); TCHAR str[2]; str[0]=0x2588; str[1]=0; SetWindowText(hStatic,str); //.....
int taille=sizeof(TCHAR);
//..... HWND hStatic=CreateWindow(STATIC,...... HFONT hFont; hFont=CreateFont(18,0,0,0,0,0,0,0,SYMBOL_CHARSET,0,0,0,0,"Webdings"); SendMessage(hStatic,WM_SETFONT,(WPARAM)hFont,1); char str[2]; str[0]=0x67; str[1]=0; SetWindowText(hStatic,str); //.....