Changeset 828 in dev for trunk/ab5.0/abdev/abdev/abdev.cpp


Ignore:
Timestamp:
Mar 19, 2012, 1:59:48 AM (12 years ago)
Author:
イグトランス (egtra)
Message:

egtraブランチの内容をマージ。

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/ab5.0/abdev

    • Property svn:ignore set to
      *.opensdf
      *.sdf
      *.suo
      *.user
      int
      ipch
      out
  • trunk/ab5.0/abdev/abdev/abdev.cpp

    r773 r828  
    22
    33#include "abdev.h"
     4
     5#if _ATL_VER == 0x0800
     6#pragma comment(lib, "atlthunk.lib")
     7#endif
    48
    59#ifdef _DEBUG
     
    910914    SHFILEINFO shfi;
    911915    if(filepath)
     916    {
    912917        SHGetFileInfo(filepath, FILE_ATTRIBUTE_ARCHIVE, &shfi, sizeof(SHFILEINFO), SHGFI_ICON | SHGFI_SMALLICON );
    913     else shfi.hIcon=(HICON)LoadImage(hResInst,MAKEINTRESOURCE(IDI_TEXTDOCUMENT),IMAGE_ICON,16,16,LR_DEFAULTCOLOR);;
     918    }
     919    else
     920    {
     921        shfi.hIcon = ActiveBasic::Resource::LoadIconAlt(hResInst, IDI_TEXTDOCUMENT, 16, 16, LR_DEFAULTCOLOR);
     922    }
    914923    mdic.lParam=(LPARAM)shfi.hIcon;
    915924
     
    14891498    return RegisterClassEx(&wcl);
    14901499}
     1500
     1501#ifndef AB_TEST
     1502
    14911503int PASCAL WinMain(HINSTANCE hThisInst,HINSTANCE,LPSTR lpCmdLine,int ShowCmd){
    14921504#ifdef _DEBUG
     
    15401552    //return 0;
    15411553
    1542 
    1543     hAccel=LoadAccelerators(hResInst,MAKEINTRESOURCE(IDR_ACCELERATOR1));
     1554    hAccel = ActiveBasic::Resource::LoadAcceleratorsAlt(hResInst, IDR_ACCELERATOR1);
    15441555
    15451556    //メインウィンドウ
     
    16441655    return static_cast<int>(msg.wParam);
    16451656}
     1657
     1658#endif
Note: See TracChangeset for help on using the changeset viewer.