Merci Arnaud16022,
Voici un bout de code :
ATOM MyRegisterClass(HINSTANCE hInstance, LPTSTR szWindowClass)
{
WNDCLASS wc;
wc.style = CS_HREDRAW | CS_VREDRAW;
wc.lpfnWndProc = (WNDPROC) WndProc;
wc.cbClsExtra = 0;
wc.cbWndExtra = 0;
wc.hInstance = hInstance;
wc.hIcon = 0;
wc.hCursor = 0;
wc.hbrBackground = (HBRUSH) GetStockObject(WHITE_BRUSH);
wc.lpszMenuName = 0;
wc.lpszClassName = szWindowClass;
return RegisterClass(&wc);
}
int WINAPI WinMain( HINSTANCE hInstance,HINSTANCE hPrevInstance,LPTSTR lpCmdLine,int nCmdShow)
{
MSG msg;
HACCEL haccel;
ACCEL accel;
accel.fVirt = FVIRTKEY|FSHIFT;
accel.key = VK_TAB; // code de la touche Tab
accel.cmd = MYACCEL;
haccel = CreateAcceleratorTable(&accel, 1); // creation du raccourci "shift + tab"
hinst=hInstance;
char** tableau=NULL;
LancerParsing(tableau);
MyRegisterClass(hInstance, TEXT("Projet_Falcon"));
hWndMain = CreateWindow(TEXT("Projet_Falcon"),TEXT(""),WS_VISIBLE,CW_USEDEFAULT,
CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT, NULL, NULL,hInstance, NULL);
if (!hWndMain)
{
return FALSE;
}
ShowWindow(hWndMain, nCmdShow);
UpdateWindow(hWndMain);
while (GetMessage(&msg, NULL, 0, 0))
{
if(!TranslateAccelerator(msg.hwnd, haccel, &msg))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
DestroyAcceleratorTable(haccel);
return msg.wParam;
}
C'est évidemment un tout petit bout de code, mais en effet il me semble qu'il doit etre "récupérable" sous un autre environnement
Je télécharge Visual C++ Express là, je vais voir ce que ca donne , mais cette aprem ca voulait meme pas ouvrir mon projet...
Je te tiens au courant 