Ignore:
Timestamp:
Jan 29, 2011, 6:17:56 PM (14 years ago)
Author:
イグトランス (egtra)
Message:

icon_resをLOAD_LIBRARY_AS_DATAFILE付きで読み込むよう変更。icon_resプロジェクトをab.slnへ組み込んだ。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/egtra/ab5.0/abdev/abdev-impl/Resource/Load.h

    r781 r784  
    11#pragma once
     2
     3#include <memory>
     4#include <windows.h>
    25
    36namespace ActiveBasic { namespace Resource {
    47
    5 HICON LoadIcon(HINSTANCE hinst, USHORT id, int cxDesired, int cyDesired, UINT load);
     8HICON LoadIcon(HINSTANCE hinst, USHORT id, int cxDesired, int cyDesired, UINT load = 0);
     9
     10struct IconDeleter
     11{
     12    typedef HICON pointer;
     13
     14    void operator ()(HICON hicon) const
     15    {
     16        ::DestroyIcon(hicon);
     17    }
     18};
     19
     20typedef std::unique_ptr<HICON, IconDeleter> UniqueHIcon;
    621
    722}}
Note: See TracChangeset for help on using the changeset viewer.