ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

void Pane::calc_tabbed_width ( LPDRAWITEMSTRUCT  dis,
int  col,
LPCTSTR  str 
) [protected]

Definition at line 645 of file pane.cpp.

Referenced by draw_item().

{
    RECT rt = {0, 0, 0, 0};

/*  DRAWTEXTPARAMS dtp = {sizeof(DRAWTEXTPARAMS), 2};
    DrawTextEx(dis->hDC, (LPTSTR)str, -1, &rt, DT_CALCRECT|DT_SINGLELINE|DT_NOPREFIX|DT_EXPANDTABS|DT_TABSTOP, &dtp);*/

    DrawText(dis->hDC, (LPTSTR)str, -1, &rt, DT_CALCRECT|DT_SINGLELINE|DT_EXPANDTABS|DT_TABSTOP|(2<<8));

    if (rt.right > _widths[col])
        _widths[col] = rt.right;
}

Generated on Sat May 26 2012 06:31:37 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.