各位新年好!想请教各位一个问题:获取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];