Describes individual control elements on the main application interface. This group includes functions and structures related to buttons, combo boxes, labels, and other UI elements present on the main window of the controller application.
More...
|
LRESULT CALLBACK | WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) |
| Window procedure for handling messages sent to the application window.
|
|
LRESULT CALLBACK | LeftPanelWndProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) |
| Window procedure for identified button controls in the left panel.
|
|
LRESULT CALLBACK | RightPanelWndProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) |
| Custom window procedure for numeric edit controls panel.
|
|
|
uint16_t | set_index |
| Counter that gives current grouping of trials (i.e. for 0 in MID-0 tag, or 1 in PRO-1 tag)
|
|
uint8_t | logging |
| Flag giving the current "logging" state (ON = 1 | OFF = 0).
|
|
uint8_t | paused |
| Flag giving the current "paused" state (PAUSED = 1 | RUNNING = 0).
|
|
uint16_t | current_successes |
| Tracks the total successful trials on the current set.
|
|
uint16_t | current_attempts |
| Tracks the total successful trials on the current set.
|
|
uint16_t | total_successes |
| Tracks the total successful trials on the current session.
|
|
uint16_t | total_attempts |
| Tracks the total successful attempted trials in the current session.
|
|
int | randomTargetSet [8] |
| Current order of group of 8 targets for keeping pseudo-randomized ordering.
|
|
Describes individual control elements on the main application interface. This group includes functions and structures related to buttons, combo boxes, labels, and other UI elements present on the main window of the controller application.
UDP Network Structure
◆ LeftPanelWndProc()
LRESULT CALLBACK LeftPanelWndProc |
( |
HWND | hwnd, |
|
|
UINT | uMsg, |
|
|
WPARAM | wParam, |
|
|
LPARAM | lParam ) |
Window procedure for identified button controls in the left panel.
This function handles messages for button controls, specifically WM_CTLCOLORBTN, to customize their appearance based on their control ID.
- Parameters
-
hwnd | The handle to the button window. |
uMsg | The message to be processed. |
wParam | Additional message-specific information. |
lParam | Additional message-specific information. |
- Returns
- The result of the message processing and depends on the message being handled.
◆ RightPanelWndProc()
LRESULT CALLBACK RightPanelWndProc |
( |
HWND | hwnd, |
|
|
UINT | uMsg, |
|
|
WPARAM | wParam, |
|
|
LPARAM | lParam ) |
Custom window procedure for numeric edit controls panel.
This function serves as the window procedure for numeric edit controls in the right panel. It filters input to allow only digits and the decimal point, rejecting all other characters.
- Parameters
-
hwnd | The handle to the numeric edit control container panel. |
uMsg | The message identifier. |
wParam | Additional message information. The contents of this parameter depend on the value of the uMsg parameter. |
lParam | Additional message information. The contents of this parameter depend on the value of the uMsg parameter. |
- Returns
- Returns the result of the message processing and depends on the message sent.
◆ WindowProc()
LRESULT CALLBACK WindowProc |
( |
HWND | hwnd, |
|
|
UINT | uMsg, |
|
|
WPARAM | wParam, |
|
|
LPARAM | lParam ) |
Window procedure for handling messages sent to the application window.
- Parameters
-
hwnd | Handle to the window. |
uMsg | Message identifier. |
wParam | Additional message information. The contents of this parameter depend on the value of the uMsg parameter. |
lParam | Additional message information. The contents of this parameter depend on the value of the uMsg parameter. |
- Returns
- Returns zero if the message was processed, or a nonzero value if the message was ignored.
◆ current_attempts
uint16_t current_attempts |
|
extern |
Tracks the total successful trials on the current set.
◆ current_successes
uint16_t current_successes |
|
extern |
Tracks the total successful trials on the current set.
◆ logging
Flag giving the current "logging" state (ON = 1 | OFF = 0).
◆ paused
Flag giving the current "paused" state (PAUSED = 1 | RUNNING = 0).
◆ randomTargetSet
Current order of group of 8 targets for keeping pseudo-randomized ordering.
◆ set_index
Counter that gives current grouping of trials (i.e. for 0 in MID-0 tag, or 1 in PRO-1 tag)
◆ total_attempts
Tracks the total successful attempted trials in the current session.
◆ total_successes
Tracks the total successful trials on the current session.