/*-------------------------------------------------
bobo,2020-01-18
-------------------------------------------------*/
#include <windows.h>
#define DIVISIONS 10 //单元格横向纵向个数
int cxBlock, cyBlock;
LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ;
LRESULT CALLBACK ChildWndProc (HWND, UINT, WPARAM, LPARAM) ;
TCHAR szChildClass[] = TEXT ("caret_Child") ;
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
PSTR szCmdLine, int iCmdShow)
{
static TCHAR szAppName[] = TEXT ("Cell Caret Demo") ;
HWND hwnd ;
MSG msg ;
WNDCLASS wndclass ;
wndclass.style = CS_HREDRAW | CS_VREDRAW ;
wndclass.lpfnWndProc = WndProc ;
wndclass.cbClsExtra = 0 ;
wndclass.cbWndExtra = 0 ;
wndclass.hInstance = hInstance ;
wndclass.hIcon = LoadIcon (NULL,
Win32程序简单演示-模拟电子表格移动光标到另一单元格
最新推荐文章于 2023-11-04 13:24:43 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)