关于CWnd::CreateSolidCaret()函数
MSDN上有一段关于上述函数的解释:The system’s window-border width or height can be retrieved by theGetSystemMetrics Windows function with the SM_CXBORDER and SM_CYBORDER indexes. Using the window-border width or height ensures that the caret will be visible on a high-resolution display.
这其中提到一个函数GetSystemMetrics,使用这个函数为何不能显示出文本插入符,下述是我的代码段:
this->CreateSolidCaret(GetSystemMetrics(SM_CXBORDER), GetSystemMetrics(SM_CYBORDER ));
this->ShowCaret();
GetSystemMetrics在CreateSolidCaret中使用又有什么功能?谢谢!