各位新年好!想请教各位一个问题:获取richedit中鼠标所在处的背景色? - C++ Builder / Windows SDK/API
如题!
[解决办法]
TPoint P;
GetCursorPos(&P);
P = ScreenToClient(P);
Graphics::TBitmap *bg = GetFormImage(); //抓窗体图
Color = bg-> Canvas-> Pixels[P.x][P.y];
发布时间: 2012-03-18 13:55:38 作者: rapoo
各位新年好!想请教各位一个问题:获取richedit中鼠标所在处的背景色? - C++ Builder / Windows SDK/API
如题!
[解决办法]
TPoint P;
GetCursorPos(&P);
P = ScreenToClient(P);
Graphics::TBitmap *bg = GetFormImage(); //抓窗体图
Color = bg-> Canvas-> Pixels[P.x][P.y];