Control Messages

Graphic buttons use the following messages:

┌──────────────────────────────┬──────────────────────────────┐
│Message                       │Description                   │
├──────────────────────────────┼──────────────────────────────┤
│GBM_ANIMATE                   │Sets the animation of an      │
│                              │animate-able graphic button On│
│                              │or Off.                       │
├──────────────────────────────┼──────────────────────────────┤
│GBM_QUERYANIMATIONACTIVE      │Returns the animation state of│
│                              │the graphic button.           │
├──────────────────────────────┼──────────────────────────────┤
│GBM_QUERYANIMATIONRATE        │Returns the animation rate of │
│                              │a graphic button in           │
│                              │milliseconds.                 │
├──────────────────────────────┼──────────────────────────────┤
│GBM_QUERYBITMAPINDEX          │Returns the bitmap index of   │
│                              │the queried button parameter. │
├──────────────────────────────┼──────────────────────────────┤
│GBM_QUERYSTATE                │Returns the current state of  │
│                              │the graphic button.           │
├──────────────────────────────┼──────────────────────────────┤
│GBM_QUERYTEXTPOSITION         │Returns the text positioning  │
│                              │relative to the bitmap.       │
├──────────────────────────────┼──────────────────────────────┤
│GBM_SETANIMATIONRATE          │Sets the animation rate of a  │
│                              │animate-able graphic button.  │
├──────────────────────────────┼──────────────────────────────┤
│GBM_SETBITMAPINDEX            │Sets the bitmap index to use  │
│                              │during various states of the  │
│                              │graphic button.               │
├──────────────────────────────┼──────────────────────────────┤
│GBM_SETGRAPHICDATA            │An application sends this     │
│                              │message to change the         │
│                              │graphical data of the graphic │
│                              │button.                       │
├──────────────────────────────┼──────────────────────────────┤
│GBM_SETSTATE                  │Sets the state of a two-state │
│                              │graphic button.               │
├──────────────────────────────┼──────────────────────────────┤
│GBM_SETTEXTPOSITION           │Sets the text positioning     │
│                              │relative to the bitmap.       │
└──────────────────────────────┴──────────────────────────────┘


[Back: Styles]
[Next: WM_COMMAND]