64 lines
1.8 KiB
Plaintext
64 lines
1.8 KiB
Plaintext
// pm-image-ui resource script
|
||
#include "Resource.h"
|
||
|
||
#define APSTUDIO_HIDDEN_SYMBOLS
|
||
#include "windows.h"
|
||
#undef APSTUDIO_HIDDEN_SYMBOLS
|
||
|
||
// Ribbon compiled resources (generated by uicc from Ribbon.xml)
|
||
#include "RibbonUI.rc"
|
||
|
||
// Manifest is provided by media-img-win.manifest (already linked to pm-image).
|
||
|
||
// Fallback menu (when ribbon unavailable)
|
||
IDW_MAIN MENU
|
||
BEGIN
|
||
POPUP "&File"
|
||
BEGIN
|
||
MENUITEM "&Add Files...", IDM_ADD_FILES
|
||
MENUITEM "Add &Folder...", IDM_ADD_FOLDER
|
||
MENUITEM SEPARATOR
|
||
MENUITEM "E&xit\tAlt+F4", IDM_EXIT
|
||
END
|
||
POPUP "&Actions"
|
||
BEGIN
|
||
MENUITEM "&Resize\tF5", IDM_RESIZE
|
||
MENUITEM "&Clear Queue", IDM_CLEAR_QUEUE
|
||
END
|
||
POPUP "&Help"
|
||
BEGIN
|
||
MENUITEM "&About\tF1", IDM_ABOUT
|
||
END
|
||
END
|
||
|
||
// Fallback toolbar bitmap (16x15 per button placeholder – tiny 3-button strip)
|
||
// We can add real bitmaps later; for now the toolbar works without.
|
||
|
||
// About dialog
|
||
IDW_ABOUT DIALOGEX 0, 0, 200, 80
|
||
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
|
||
CAPTION "About pm-image"
|
||
FONT 8, "MS Shell Dlg", 400, 0, 0x1
|
||
BEGIN
|
||
DEFPUSHBUTTON "OK", IDOK, 75, 56, 50, 14
|
||
CTEXT "pm-image — resize & transform", -1, 10, 12, 180, 10
|
||
CTEXT "Win32++ UI", -1, 10, 26, 180, 10
|
||
END
|
||
|
||
// Accelerators
|
||
IDW_MAIN ACCELERATORS
|
||
BEGIN
|
||
VK_F5, IDM_RESIZE, VIRTKEY, NOINVERT
|
||
END
|
||
|
||
// String table
|
||
STRINGTABLE
|
||
BEGIN
|
||
IDW_MAIN "pm-image"
|
||
IDW_READY "Ready"
|
||
END
|
||
|
||
// Docking bitmaps – reuse from Win32xx samples path (or copy to res/)
|
||
// These are required by the dock framework for the floating dock targeting UI.
|
||
// If missing, docking still works but without the visual targeting indicators.
|