ÚÄÄÄÄÄÄÄÄÄ¿
³ FRAME.H ³
ÀÄÄÄÄÄÄÄÄÄÙ

#define ID_MAIN_WINDOW              1024
#define ID_MAIN_WINDOW_TITLE        1
#define ID_MAIN_WINDOW_ICON         1

#define ID_MAIN_MENU_FILE_ITEM      1
#define ID_MAIN_MENU_EDIT_ITEM      2
#define ID_MAIN_MENU_VIEW_ITEM      3

#define STR_CLIENT_WINDOW_CLASS     "ClientWindowClass"
#define STR_FRAME_WINDOW_FONT_NAME  "System Proportional"
#define STR_FRAME_WINDOW_FONT_SIZE  10

...

ÚÄÄÄÄÄÄÄÄÄÄ¿
³ FRAME.RC ³
ÀÄÄÄÄÄÄÄÄÄÄÙ

#include "Frame.h"

ID_MAIN_WINDOW : Frame = {
    Title = ID_MAIN_WINDOW_TITLE
    Icon = ID_MAIN_WINDOW_ICON

    Workarea = STR_CLIENT_WINDOW_CLASS

    Style = {
        Flags = FCF_ICON | FCF_TASKLIST | FS_SIZEBORDER | WS_VISIBLE
        Frame = FCF_SYSMENU | FCF_TITLEBAR | FCF_MINMAX | FCF_MENU | FCF_TOOLBAR 

        Font = {
            Name = STR_FRAME_WINDOW_FONT_NAME
            Size = STR_FRAME_WINDOW_FONT_SIZE
        }
    }

    Size = {
        X = 0
        W = %SV_CXSCREEN%
        Y = (/ %SV_CYSCREEN% 18)
        H = (- %SV_CYSCREEN% (/ %SV_CYSCREEN% 18))
    }

    Menu = {
        Open+Save+Edit : Items = {
            ID_MAIN_MENU_FILE_ITEM : Item = {
                Text = ID_MAIN_MENU_FILE_ITEM_TEXT
                Menu = ID_FILE_MENU
            }

            ID_MAIN_MENU_EDIT_ITEM : Item = {
                Text = ID_MAIN_MENU_EDIT_ITEM_TEXT
                Menu = ID_EDIT_MENU
            }
        }

        View+Settings+Help : Items = {
            ID_MAIN_MENU_VIEW_ITEM : Item = {
                Text = ID_MAIN_MENU_VIEW_ITEM_TEXT
                Menu = ID_VIEW_MENU
            }

            ...
        }
    }

    Toolbar = {
        Actions : Items = {
            ...
        }

        Edit : Items = {
            ...
        }

        ...
    }
}

ID_MAIN_WINDOW_TITLE : String = {
    Text.En = "Window title"
    Text.Ru = "‡ £®«®¢®ª ®ª­ "
}

ID_MAIN_WINDOW_ICON : Icon = {
    Image.16x16 = "./Icons/Main_16x16.ico"
    Image.32x32 = "./Icons/Main_32x32.ico"
    Image.48x48 = "./Icons/Main_48x48.ico"

    Image.16x16.Dark = "./Icons/Main_16x16_dark.ico"
    Image.32x32.Dark = "./Icons/Main_32x32_dark.ico"
    Image.48x48.Dark = "./Icons/Main_48x48_dark.ico"
}

ID_MAIN_MENU_FILE_ITEM_TEXT : String = {
    ...
}

ID_MAIN_MENU_EDIT_ITEM_TEXT : String = {
    ...
}

ID_MAIN_MENU_VIEW_ITEM_TEXT : String = {
    ...
}

ID_FILE_MENU : Menu = {
    ...
}

ID_EDIT_MENU : Menu = {
    ...
}

ID_VIEW_MENU : Menu = {
    ...
}

...