|
STRKFMT
- 0
Provides a method for retrieving or changing the attributes of specified
strokes in an iedit control. This structure is used by the IE_GETFORMAT and
IE_SETFORMAT messages.
typedef struct {
DWORD cbSize;
UINT iesf;
UINT iStrk;
PENTIP tip;
DWORD dwUser;
DWORD dwReserved;
} STRKFMT;
Members
cbSize
Size of this structure in bytes.
iesf
Stroke format flags. Note that the first three flags cannot be combined with
each other by the bitwise OR operator:
Constant
| Description
| IESF_ALL
| Assume all strokes in the control.
| IESF_SELECTION
| Assume all selected strokes.
| IESF_STROKE
| Assume the stroke specified in the iStrk member, described in "Comments" section.
| IESF_PENTIP
| Set both pen tip color and width.
| IESF_TIPCOLOR
| Set only pen tip color.
| IESF_TIPWIDTH
| Set only pen tip width.
|
iStrk
Index of a specific stroke.
tip
PENTIP structure, containing ink tip attributes.
dwUser
User data for stroke.
dwReserved
Reserved.
Comments
When sending either IE_GETFORMAT or IE_SETFORMAT, the application initializes
the iesf member with bit flags, indicating:
- The strokes in the iedit control to which the IE_ messages refer.
- The attributes (color and/or width) of those strokes.
Setting the IESF_STROKE bit flag in iesf limits action to the single stroke identified in iStrk. Setting IESF_SELECTION references all selected strokes. Setting IESF_ALL
references all strokes in the control. These flags are mutually exclusive and
cannot be combined.
The application must also set the bit flags IESF_TIPCOLOR or IESF_TIPWIDTH in
the iesf member of the structure. These bit flags identify the stroke attribute to
which the IE_ messages refer. For convenience, the defined value IESF_PENTIP
combines IESF_TIPCOLOR and IESF_TIPWIDTH to identify both color and width.
With these bit flags, an application can alter stroke color and width at the
same time or alter only one attribute while leaving the other unchanged.
Sending an IE_GETFORMAT message to the control produces the following results:
- If the requested strokes have the same color and width, the returned STRKFMT contains the common color and width in the rgb and bwidth members of its PENTIP structure. The return value from IE_GETFORMAT is 0.
- If the requested strokes do not all share the same attribute, the returned STRKFMT contains the attribute of the last stroke in the group. The return value from
IE_GETFORMAT contains the bit flags IESF_TIPCOLOR and/or IESF_TIPWIDTH to
indicate the attribute in which the strokes differ.
Before using STRKFMT, an application must initialize cbSize with sizeof( STRKFMT ).
See Also
IE_GETFORMAT, IE_SETFORMAT, PENTIP
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|