MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / GetTextAlign

Function GetTextAlign

DebugView++/LogView.cpp:29–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27namespace debugviewpp {
28
29unsigned GetTextAlign(const HDITEM& item)
30{
31 switch (item.fmt & HDF_JUSTIFYMASK)
32 {
33 case HDF_LEFT: return DT_LEFT;
34 case HDF_CENTER: return DT_CENTER;
35 case HDF_RIGHT: return DT_RIGHT;
36 }
37 return HDF_LEFT;
38}
39
40SIZE GetTextSize(CDCHandle dc, const std::wstring& text, int length)
41{

Callers 1

DrawSubItemMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected