Win32


Windows OWL - . 53



255

" .",

-1,9,10,202,47, ss_center|not ws_group

ICON "MyIcon",-1,30,77,16,16

}

// 28-1.cpp

#include <owl\framewin.h>

#include <owl\dialog.h>

#include "28-1.h"

/* , o Tapplication*/

class MyApp:public TApplication{

public:

void InitMainWindow();// InitMainWindow

};

/* ,

TframeWindow*/ class MyWindow:public TFrameWindow{

HICON hIcon;// - - MyWindow

public:

MyWindow(TWindow*parent,char far*title);

void GetWindowClass(WNDCLASS&);//

void CmAbout();// " "

DECLARE_RESPONSE_TABLE(MyWindow);

); /* MyWindow* /

DEFINE_RESPONSE_TABLE1(MyWindow,TFrameWindow)

EV_COMMAND(CM_ABOUT,CmAbout), END_RESPONSE_TABLE; /* */ MyWindow::MyWindow(TWindow*parent,char far*title):TFrameWindow(parent,title){

AssignMenu("MainMenu");

hIcon=GetApplication()->TModule::LoadIcon("MyIcon");

}

/* - MyWindow*/ void MyWindow::CmAbout (){

TDialog* myDlg=new TDialog(this,About);

myDlg->Execute();

} void MyWindow::GetWindowClass(WNDCLASS&wc){

TWindow::GetWindowClass(wc);// GetWindowClass

we.hIcon=hIcon;// NNDCLASS

} void MyApp::InitMainWindow(void){

EnableBWCC();// Borland C++

SetMainWindow(new MyWindow(0," 28-1"));

}

/* OwlMain*/ int OwlMain(int,char*[]){

return MyApp() . Run () ;

}

, API Windows, OWL- , , . , Resource Workshop, " Borland", ("BorBtn", "BorShade", BSS_HDIP .), . Borland