void CBCGPGridCtrl::EnableVirtualMode | ( | BCGPGRID_CALLBACK | pCallback = NULL , |
LPARAM | lParam = 0 |
||
) |
Enables virtual mode.
Call this function to enable virtual mode. When the virtual mode has been enabled, you cannot disable it anymore. If you have no callback function, and pCallback is NULL, then the grid will send BCGPGN_GETDISPINFO (currently it's the same as LVN_GETDISPINFO) notification message to its owner. In that case you should handle this notification message, fill up and return TRUE.
The callback function has the following prototype:
BOOL CALLBACK CallbackFunc (BCGPGRID_DISPINFO*, LPARAM);
pCallback | Points to a callback function |
lParam | Used to pass a user-defined value to the callback function. |
Example 1:
Example 2: