So, in winforms, each drop-down list has this little arrow on the right that tells the user about the drop-down list, like this:
http://www.ci.berkeley.ca.us/ig_common/images/igsch_dropdown_up_o2003silver.gif http://www.ci.berkeley.ca.us/ig_common/images/igsch_dropdown_up_o2003silver.gif
Now, how do I understand how wide this figure is? The reason is that I use ControlDrawToBitmap, it doesn’t paint the text for the combo boxes, and I can redraw the contents, I just hit some of the arrows (which are drawn correctly).
, : , . . API GetSystemMetrics(), . , .
: , , , ( ). . EM_GETRECT MSDN.
, , : , .
9
Source: https://habr.com/ru/post/1757873/More articles:Delphi: Locking Brackets Optional? - syntaxaccess to the DataContext window from a DataGrid - data-bindingПочему у DAO есть отдельные методы создания и обновления? - design-patternsDynamic ActionScript classes - actionscript-3Associative arrays in javascript? - javascriptHow to use SnapToDevicePixels and StrokeDashArray - wpfIs PostgreSQL IN () message still fast with up to 1000 arguments? - postgresqlHow to ignore undefined characters at runtime on Linux? - linuxIIS and ASP.Net load balancing - asp.netThe correct way to pass username / password to SmtpClient (.NET) is c #All Articles