ش | ی | د | س | چ | پ | ج |
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 |
: WndProc
case WM_INITDIALOG
ShowWindow GetDlgItem(hDlg,IDOK),SW_HIDE
hBitmap1=CreateWindowEx(WS_EX_TRANSPARENT,"Button","Login", WS_VISIBLE Or WS_CHILD Or BS_BITMAP,60, 150,100, 25,hDlg,(HMENU)IDC_BUTTON2, NULL, NULL
(
(hdc = GetDC(hDlg
(hMemDC = CreateCompatibleDC(hdc
(hBitmap = CreateCompatibleBitmap(hdc,120,25
SelectObject hMemDC,hBitmap
(SetDCBrushColor hMemDC,RGB(212,208,20
Dim r As RECT
(FillRect(hMemDC,r,GetStockObject(DC_BRUSH
DeleteDC hMemDC
ReleaseDC hDlg,hdc
Code 128C
Data - 345678
Data Characters | 3 | 4 | 5 | 6 | 7 | 8 |
Multiply each of the two digits with an increasing weight. | ||||||
Weight | *1 | *2 | *3 | |||
Sum : | (34*1) + (56*2) + (78*3) = 380 | |||||
For Code 128C, add an additional of 105 to the sum above | ||||||
Total | 380 + 105 = 485 | |||||
Modulo 103 Check Character: | 485 % 103 = 73 (which maps to the character 'i') |