CWnd::CenterWindow()

    Date: 12/13/07 (Code WTF)    Keywords: no keywords

    Прототип функции:

    void CenterWindow(CWnd* pAlternateOwner = NULL);

    Реализация:

    void CWnd::CenterWindow(CWnd* pAlternateOwner)
    {
      ASSERT(::IsWindow(m_hWnd));

      // determine owner window to center against
      DWORD dwStyle = GetStyle();
      HWND hWndCenter = pAlternateOwner->GetSafeHwnd();
      if (pAlternateOwner == NULL)
      {
        // ...
      }
      // ...
    }


    Один и тот же код и в MFC 7.1, и в 8.0

    Source: http://community.livejournal.com/code_wtf/118126.html

« Вы не знаете,... || Не WTF, просто... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home