Question: SYSTEM LEVEL PROGRAMMING SYSTEM LEVEL PROGRAMMING 4. Read the following code, and answering the questions. LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM WParam, LPARAM
SYSTEM LEVEL PROGRAMMING
SYSTEM LEVEL PROGRAMMING 4. Read the following code, and answering the questions. LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM WParam, LPARAM Param { --- case WM_LBUTTONDOWN: xPos = GET_X_LPARAM(IParam); Pos = GET_Y_LPARAM(Param): GetLocalTime(&systime): sprintf(time, "%4d-%20-%2d %2d:%2d", systime.wYear, systime.WMonth, systime.wDay systime.wHour, systime.wMinute, systime.wSecond): hdc = GetDC (hwnd): TextOut (hdc, xPos, ypos, time, strlen (time)); ReleaseDC (hwnd, hdc); return 0; } Question 1: What is the function of the code? Question 2: Please add notes to each line of the code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
