📄 gdiplus_string.cpp
字号:
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipGetStringFormatAlignPtr)(GDIPCONST GpStringFormat *format,
StringAlignment *align));
DEFINE_MEMBER(GdipGetStringFormatAlign);
GpStatus WINGDIPAPI
GdipGetStringFormatAlign(GDIPCONST GpStringFormat *format, StringAlignment *align)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipGetStringFormatAlign == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipGetStringFormatAlign);
}
if ( g_GdipGetStringFormatAlign != NULL )
{
status = (*g_GdipGetStringFormatAlign)(format, align);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipSetStringFormatLineAlignPtr)(GpStringFormat *format,
StringAlignment align));
DEFINE_MEMBER(GdipSetStringFormatLineAlign);
GpStatus WINGDIPAPI
GdipSetStringFormatLineAlign(GpStringFormat *format, StringAlignment align)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipSetStringFormatLineAlign == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipSetStringFormatLineAlign);
}
if ( g_GdipSetStringFormatLineAlign != NULL )
{
status = (*g_GdipSetStringFormatLineAlign)(format, align);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipGetStringFormatLineAlignPtr)(GDIPCONST GpStringFormat *format,
StringAlignment *align));
DEFINE_MEMBER(GdipGetStringFormatLineAlign);
GpStatus WINGDIPAPI
GdipGetStringFormatLineAlign(GDIPCONST GpStringFormat *format,
StringAlignment *align)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipGetStringFormatLineAlign == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipGetStringFormatLineAlign);
}
if ( g_GdipGetStringFormatLineAlign != NULL )
{
status = (*g_GdipGetStringFormatLineAlign)(format, align);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipSetStringFormatTrimmingPtr)(GpStringFormat *format, StringTrimming trimming));
DEFINE_MEMBER(GdipSetStringFormatTrimming);
GpStatus WINGDIPAPI
GdipSetStringFormatTrimming(GpStringFormat *format, StringTrimming trimming)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipSetStringFormatTrimming == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipSetStringFormatTrimming);
}
if ( g_GdipSetStringFormatTrimming != NULL )
{
status = (*g_GdipSetStringFormatTrimming)(format, trimming);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipGetStringFormatTrimmingPtr)(GDIPCONST GpStringFormat *format, StringTrimming *trimming));
DEFINE_MEMBER(GdipGetStringFormatTrimming);
GpStatus WINGDIPAPI
GdipGetStringFormatTrimming(GDIPCONST GpStringFormat *format, StringTrimming *trimming)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipGetStringFormatTrimming == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipGetStringFormatTrimming);
}
if ( g_GdipGetStringFormatTrimming != NULL )
{
status = (*g_GdipGetStringFormatTrimming)(format, trimming);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipSetStringFormatHotkeyPrefixPtr)(GpStringFormat *format, INT hotkeyPrefix));
DEFINE_MEMBER(GdipSetStringFormatHotkeyPrefix);
GpStatus WINGDIPAPI
GdipSetStringFormatHotkeyPrefix(GpStringFormat *format, INT hotkeyPrefix)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipSetStringFormatHotkeyPrefix == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipSetStringFormatHotkeyPrefix);
}
if ( g_GdipSetStringFormatHotkeyPrefix != NULL )
{
status = (*g_GdipSetStringFormatHotkeyPrefix)(format, hotkeyPrefix);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipGetStringFormatHotkeyPrefixPtr)(GDIPCONST GpStringFormat *format,
INT *hotkeyPrefix));
DEFINE_MEMBER(GdipGetStringFormatHotkeyPrefix);
GpStatus WINGDIPAPI
GdipGetStringFormatHotkeyPrefix(GDIPCONST GpStringFormat *format,
INT *hotkeyPrefix)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipGetStringFormatHotkeyPrefix == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipGetStringFormatHotkeyPrefix);
}
if ( g_GdipGetStringFormatHotkeyPrefix != NULL )
{
status = (*g_GdipGetStringFormatHotkeyPrefix)(format, hotkeyPrefix);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipSetStringFormatTabStopsPtr)(GpStringFormat *format, REAL firstTabOffset,
INT count, GDIPCONST REAL *tabStops));
DEFINE_MEMBER(GdipSetStringFormatTabStops);
GpStatus WINGDIPAPI
GdipSetStringFormatTabStops(GpStringFormat *format, REAL firstTabOffset,
INT count, GDIPCONST REAL *tabStops)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipSetStringFormatTabStops == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipSetStringFormatTabStops);
}
if ( g_GdipSetStringFormatTabStops != NULL )
{
status = (*g_GdipSetStringFormatTabStops)(format, firstTabOffset, count, tabStops);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipGetStringFormatTabStopsPtr)(GDIPCONST GpStringFormat *format, INT count,
REAL *firstTabOffset, REAL *tabStops));
DEFINE_MEMBER(GdipGetStringFormatTabStops);
GpStatus WINGDIPAPI
GdipGetStringFormatTabStops(GDIPCONST GpStringFormat *format, INT count,
REAL *firstTabOffset, REAL *tabStops)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipGetStringFormatTabStops == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipGetStringFormatTabStops);
}
if ( g_GdipGetStringFormatTabStops != NULL )
{
status = (*g_GdipGetStringFormatTabStops)(format, count, firstTabOffset, tabStops);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipGetStringFormatTabStopCountPtr)(GDIPCONST GpStringFormat *format, INT * count));
DEFINE_MEMBER(GdipGetStringFormatTabStopCount);
GpStatus WINGDIPAPI
GdipGetStringFormatTabStopCount(GDIPCONST GpStringFormat *format, INT * count)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipGetStringFormatTabStopCount == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipGetStringFormatTabStopCount);
}
if ( g_GdipGetStringFormatTabStopCount != NULL )
{
status = (*g_GdipGetStringFormatTabStopCount)(format, count);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipSetStringFormatDigitSubstitutionPtr)(GpStringFormat *format, LANGID language,
StringDigitSubstitute substitute));
DEFINE_MEMBER(GdipSetStringFormatDigitSubstitution);
GpStatus WINGDIPAPI
GdipSetStringFormatDigitSubstitution(GpStringFormat *format, LANGID language,
StringDigitSubstitute substitute)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipSetStringFormatDigitSubstitution == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipSetStringFormatDigitSubstitution);
}
if ( g_GdipSetStringFormatDigitSubstitution != NULL )
{
status = (*g_GdipSetStringFormatDigitSubstitution)(format, language, substitute);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipGetStringFormatDigitSubstitutionPtr)(GDIPCONST GpStringFormat *format,
LANGID *language,
StringDigitSubstitute *substitute));
DEFINE_MEMBER(GdipGetStringFormatDigitSubstitution);
GpStatus WINGDIPAPI
GdipGetStringFormatDigitSubstitution(GDIPCONST GpStringFormat *format,
LANGID *language,
StringDigitSubstitute *substitute)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipGetStringFormatDigitSubstitution == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipGetStringFormatDigitSubstitution);
}
if ( g_GdipGetStringFormatDigitSubstitution != NULL )
{
status = (*g_GdipGetStringFormatDigitSubstitution)(format, language, substitute);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipGetStringFormatMeasurableCharacterRangeCountPtr)(
GDIPCONST GpStringFormat *format, INT *count
));
DEFINE_MEMBER(GdipGetStringFormatMeasurableCharacterRangeCount);
GpStatus WINGDIPAPI
GdipGetStringFormatMeasurableCharacterRangeCount(
GDIPCONST GpStringFormat *format, INT *count)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipGetStringFormatMeasurableCharacterRangeCount == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipGetStringFormatMeasurableCharacterRangeCount);
}
if ( g_GdipGetStringFormatMeasurableCharacterRangeCount != NULL )
{
status = (*g_GdipGetStringFormatMeasurableCharacterRangeCount)(format, count);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipSetStringFormatMeasurableCharacterRangesPtr)(
GpStringFormat *format, INT rangeCount,
GDIPCONST CharacterRange *ranges
));
DEFINE_MEMBER(GdipSetStringFormatMeasurableCharacterRanges);
GpStatus WINGDIPAPI
GdipSetStringFormatMeasurableCharacterRanges(
GpStringFormat *format, INT rangeCount,
GDIPCONST CharacterRange *ranges)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipSetStringFormatMeasurableCharacterRanges == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipSetStringFormatMeasurableCharacterRanges);
}
if ( g_GdipSetStringFormatMeasurableCharacterRanges != NULL )
{
status = (*g_GdipSetStringFormatMeasurableCharacterRanges)(format, rangeCount, ranges);
}
}
return status;
}
//----------------------------------------------------------------------------
// Platform Shunt
//----------------------------------------------------------------------------
VOID WINAPI
Gdiplus_StringInit()
{
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -