Frost Moon Project

Src/MainDialog.h -MagicPNG Ver.1.00- - Frost Moon Project   アクセスランキング  

Home > ソフトウェア > MagicPNG > MagicPNG100.zip > Src > MainDialog.h

 
//MainDialog.h

//`~^`~^`~^`~^`~^`~^`~^`~^`~^`~^`~^`~^`~^`~^`~^`~^`~^`~^`
//          MagicPNG Ver.1.00 by x@rgs
//          Released under NYSL Version 0.9982
//
//`~^`~^`~^`~^`~^`~^`~^`~^`~^`~^`~^`~^`~^`~^`~^`~^`~^`~^`


#ifndef _MAINDIALOG_H_2C478CF2_F8E7_4bb3_90F3_ADCB9CCD4423
#define _MAINDIALOG_H_2C478CF2_F8E7_4bb3_90F3_ADCB9CCD4423


#include"resources/resource.h"



class MainDialog:public sslib::Dialog{
public:
    MainDialog():
        Dialog(IDD_DIALOG_MAIN),
        m_src1_button(NULL),
        m_src2_button(NULL){
        }
    ~MainDialog(){
        SAFE_DELETE(m_src1_button);
        SAFE_DELETE(m_src2_button);
    }

private:
class DropButton:public sslib::Control{
public:
    DropButton(HWND parent_handle,UINT resource_id):
        Control(parent_handle,resource_id,true){}
    virtual ~DropButton(){}
    INT_PTR onDropFiles(HDROP drop_handle);
    LRESULT onMessage(UINT message,WPARAM wparam,LPARAM lparam){
        switch(message){
            case WM_DROPFILES:return onDropFiles(reinterpret_cast<HDROP>(wparam));
            default:break;
        }
        return ::CallWindowProc(default_proc(),handle(),message,wparam,lparam);
    }
};

private:
    DropButton* m_src1_button;
    DropButton* m_src2_button;

private:
    INT_PTR onInitDialog(WPARAM wparam,LPARAM lparam);
    INT_PTR onCommand(WPARAM wparam,LPARAM lparam);

    void createMagicPNG(const TCHAR* output_path,const TCHAR* src1_path,const TCHAR* src2_path);
};


#endif //_MAINDIALOG_H_2C478CF2_F8E7_4bb3_90F3_ADCB9CCD4423


Home > ソフトウェア > MagicPNG > MagicPNG100.zip > Src > MainDialog.h