Ignore:
Timestamp:
Feb 21, 2000, 6:25:33 PM (26 years ago)
Author:
cbratschi
Message:

merged with Corel WINE 20000212, added WS_EX_CONTEXTHELP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/win32wmdiclient.cpp

    r2803 r2852  
    1 /* $Id: win32wmdiclient.cpp,v 1.24 2000-02-16 14:28:24 sandervl Exp $ */
     1/* $Id: win32wmdiclient.cpp,v 1.25 2000-02-21 17:25:32 cbratschi Exp $ */
    22/*
    33 * Win32 MDI Client Window Class for OS/2
     
    3636#include "win32wndhandle.h"
    3737
    38 #define DBG_LOCALLOG    DBG_win32wmdiclient
     38#define DBG_LOCALLOG    DBG_win32wmdiclient
    3939#include "dbglocal.h"
    4040
     
    857857  // In Win 95 look, the system menu is replaced by the child icon
    858858
    859   HICON hIcon = GetClassLongA(child->getWindowHandle(), GCL_HICONSM);
    860   if (!hIcon)
    861     hIcon = GetClassLongA(child->getWindowHandle(), GCL_HICON);
     859  /* Find small icon */
     860  HICON hIcon = child->GetSmallIcon();
     861
     862  /* If no small icon or overwridden large icon, use class small icon.. */
     863  if (!hIcon && !child->GetIcon())
     864    hIcon = GetClassLongA(child->getWindowHandle(),GCL_HICONSM);
     865
     866  /* Use large icon */
     867  if (!hIcon) hIcon = child->GetIcon();
     868
     869  /* If all else fails, use large class icon. */
     870  if (!hIcon) hIcon = GetClassLongA(child->getWindowHandle(),GCL_HICON);
     871
    862872  if (hIcon)
    863873  {
Note: See TracChangeset for help on using the changeset viewer.