1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
hprelev = CreateWindowEx(WS_EX_OVERLAPPEDWINDOW,
"Static", "", WS_BORDER | WS_CHILD | WS_VISIBLE | SS_NOTIFY,
15, 5, 600, 355,
hWnd, (HMENU)1, hInst, NULL);
lpfnOldWndProc3 = (FARPROC)SetWindowLong(hprelev,
GWL_WNDPROC, (DWORD) ProcPrelev);
hsttitre = CreateWindowEx(WS_EX_LEFT,
"Static", "", WS_CHILD | WS_VISIBLE,
150, 2, 280, 30,
hprelev, (HMENU)1, hInst, NULL);
SendMessage (hsttitre, WM_SETFONT, (UINT)hFont3, 0);
SetWindowText(hsttitre, "Gestion des prelèvements ...");
hstobj = CreateWindowEx(WS_EX_LEFT,
"Static", "", WS_CHILD | WS_VISIBLE,
20, 45, 380, 18,
hprelev, (HMENU)1, hInst, NULL);
SetWindowText (hstobj, cp.LibCompte);
for (is=175,js=0; js<6; is+=25, js++) {
hckbxprel[js] = CreateWindow("Button", "",
BS_AUTOCHECKBOX|WS_VISIBLE|WS_CHILD|WS_GROUP,
5, is, 18, 18, hprelev, NULL, hInst, NULL);
hbtsel[js] = CreateWindowEx(WS_EX_CLIENTEDGE,
"Button", "",
WS_VISIBLE|WS_CHILD|WS_GROUP|BS_PUSHBUTTON,
25,is,18,18, hprelev, NULL, hInst, NULL);
SendMessage (hbtsel[js], WM_SETFONT, (UINT)hFont2, 0);
SetWindowText (hbtsel[js], "S");
hdateprel[js] = CreateWindowEx(WS_EX_LEFT|WS_EX_CLIENTEDGE,
"Edit", "", WS_CHILD | WS_VISIBLE|ES_READONLY,
45, is, 70, 18,
hprelev, (HMENU)1, hInst, NULL);
SendMessage (hdateprel[js], WM_SETFONT, (UINT)hFont2, 0);
hmontprel[js] = CreateWindowEx(WS_EX_LEFT|WS_EX_CLIENTEDGE,
"Edit", "", WS_CHILD | WS_VISIBLE,
125, is, 60, 18,
hprelev, (HMENU)1, hInst, NULL);
SendMessage (hmontprel[js], WM_SETFONT, (UINT)hFont2, 0);
} |
Partager