Bon voila un bout de mon code:
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow) {
........ ........ hWndEdit = CreateWindow("EDIT", NULL, WS_CHILD|WS_VISIBLE|ES_READONLY|ES_MULTILINE|WS_VSCROLL|ES_AUTOVSCROLL, 0, 0, 630, 440, hWindow, (HMENU)ID_EDIT, hInstance, NULL);
fichier = fopen("mynfo.nfo", "rb"); fread(Out, 1, 6296, fichier); fclose(fichier); SetWindowText(hWndEdit, Out);
Sys = CreateFont(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "Terminal");
SendMessage(hWndEdit, WM_SETFONT, (WPARAM)Sys, TRUE);
ShowWindow(hWindow, iCmdShow); ....... ....... ....... }
|