C to VB: meaning of ":" is structures

  • Thread starter Thread starter M. Angelo
  • Start date Start date
M

M. Angelo

What is the meaning of ":" in this context"

typedef struct tagMENUBARINFO
{
DWORD cbSize;
RECT rcBar; // rect of bar, popup, item
HMENU hMenu; // real menu handle of bar, popup
HWND hwndMenu; // hwnd of item submenu if one
BOOL fBarFocused:1; // bar, popup has the focus <--------------
BOOL fFocused:1; // item has the focus <--------------
} MENUBARINFO, *PMENUBARINFO, *LPMENUBARINFO;
 
What is the meaning of ":" in this context"

typedef struct tagMENUBARINFO
{
DWORD cbSize;
RECT rcBar; // rect of bar, popup, item
HMENU hMenu; // real menu handle of bar, popup
HWND hwndMenu; // hwnd of item submenu if one
BOOL fBarFocused:1; // bar, popup has the focus <--------------
BOOL fFocused:1; // item has the focus <--------------
} MENUBARINFO, *PMENUBARINFO, *LPMENUBARINFO;

It means it's a bit field. Here is some information:

http://www.harpercollege.edu/bus-ss/cis/166/mmckenzi/lect13/l13h.htm
 
Back
Top