mirror of
https://github.com/stasenso/Puer.git
synced 2026-06-26 21:32:42 +03:00
Add: app icon
This commit is contained in:
Vendored
+51
-35
@@ -1,56 +1,72 @@
|
||||
{
|
||||
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
||||
// for the documentation about the tasks.json format
|
||||
"version":"2.0.0",
|
||||
"tasks":[
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label":"assemble",
|
||||
"type":"shell",
|
||||
"args":[
|
||||
"label": "assemble",
|
||||
"type": "shell",
|
||||
"command": "ml64.exe",
|
||||
"args": [
|
||||
"/I",
|
||||
"include",
|
||||
"/c",
|
||||
"src/${fileBasenameNoExtension}.asm"
|
||||
|
||||
],
|
||||
"command":"ml64.exe",
|
||||
"problemMatcher":{
|
||||
"owner":"nasm",
|
||||
"fileLocation":["relative","${workspaceFolder}"],
|
||||
"pattern":{
|
||||
"regexp":"^(.*)\\((\\d*)\\)\\s+:?\\s+(error|warning)\\s+([A-z]+\\d+):\\s+(.*)$",
|
||||
"file":1,
|
||||
"line":2,
|
||||
"severity":3,
|
||||
"code":4,
|
||||
"message":5,
|
||||
"loop":true
|
||||
"problemMatcher": {
|
||||
"owner": "masm",
|
||||
"fileLocation": [
|
||||
"relative",
|
||||
"${workspaceFolder}"
|
||||
],
|
||||
"pattern": {
|
||||
"regexp": "^(.*)\\((\\d*)\\)\\s+:?\\s+(error|warning)\\s+([A-Z]+\\d+):\\s+(.*)$",
|
||||
"file": 1,
|
||||
"line": 2,
|
||||
"severity": 3,
|
||||
"code": 4,
|
||||
"message": 5
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "compile-resources",
|
||||
"type": "shell",
|
||||
"command": "rc.exe",
|
||||
"args": [
|
||||
"res/rsrc.rc"
|
||||
],
|
||||
"problemMatcher": [],
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
},
|
||||
"dependsOn": [
|
||||
"assemble"]
|
||||
},
|
||||
{
|
||||
"label":"link",
|
||||
"type":"shell",
|
||||
"args":[
|
||||
"label": "link",
|
||||
"type": "shell",
|
||||
"command": "link.exe",
|
||||
"args": [
|
||||
"/SUBSYSTEM:WINDOWS",
|
||||
"/MACHINE:X64",
|
||||
"/ENTRY:entry_point",
|
||||
"/nologo",
|
||||
"/LARGEADDRESSAWARE",
|
||||
"${fileBasenameNoExtension}.obj"
|
||||
],
|
||||
"command":"link.exe",
|
||||
"dependsOn":"assemble"
|
||||
"${fileBasenameNoExtension}.obj",
|
||||
"res/rsrc.res"
|
||||
],
|
||||
"dependsOn": [
|
||||
"compile-resources",
|
||||
"assemble"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label":"execute",
|
||||
"type":"shell",
|
||||
"command":"${workspaceFolder}/${fileBasenameNoExtension}.exe",
|
||||
"group":{
|
||||
"kind":"build",
|
||||
"isDefault":true
|
||||
},
|
||||
"dependsOn":"link"
|
||||
"label": "execute",
|
||||
"type": "shell",
|
||||
"command": "${workspaceFolder}/${fileBasenameNoExtension}.exe",
|
||||
"group": "build",
|
||||
"dependsOn": "link",
|
||||
"problemMatcher": []
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Binary file not shown.
@@ -10,7 +10,7 @@ myDraw proto nSegment:DWORD ;принимаю параметр с колличе
|
||||
.data?
|
||||
hInstance HINSTANCE ? ; Хэндл нашей пpогpаммы
|
||||
CommandLine LPSTR ?
|
||||
|
||||
hIcon dq ? ; icon handle
|
||||
|
||||
NOTIFYICONDATAW STRUCT
|
||||
cbSize DWORD ?
|
||||
@@ -78,3 +78,4 @@ IDM_RESTORE equ 1000
|
||||
|
||||
IDM_EXIT equ 1010
|
||||
|
||||
IDI_ICON equ 1020
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
#define IDI_ICON 1020
|
||||
|
||||
IDI_ICON ICON "icon.ico"
|
||||
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 202 KiB |
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
|
||||
<assemblyIdentity
|
||||
version="1.0.0.0"
|
||||
processorArchitecture="amd64"
|
||||
name="MASM32.Text Editor.bigicon"
|
||||
type="win32"
|
||||
/>
|
||||
<description>Your application description here.</description>
|
||||
<dependency>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity
|
||||
type="win32"
|
||||
name="Microsoft.Windows.Common-Controls"
|
||||
version="6.0.0.0"
|
||||
processorArchitecture="amd64"
|
||||
publicKeyToken="6595b64144ccf1df"
|
||||
language="*"
|
||||
/>
|
||||
</dependentAssembly>
|
||||
</dependency> </assembly>
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
// *************************************************************************************************
|
||||
|
||||
#include "\masm64\include64\resource.h"
|
||||
|
||||
// *************************************************************************************************
|
||||
|
||||
1 24 "manifest.xml" // manifest file
|
||||
|
||||
#include "dlgs.rc"
|
||||
|
||||
// *************************************************************************************************
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 1, 0, 0, 0
|
||||
PRODUCTVERSION 1, 0, 0, 0
|
||||
FILEOS VOS__WINDOWS32
|
||||
FILETYPE VFT_APP
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "041904B0"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "Friends of Svetopaper\000"
|
||||
VALUE "FileDescription", "Pu'er tea executable file\000"
|
||||
VALUE "FileVersion", "1.0\000"
|
||||
VALUE "InternalName", "Pu'er tea\000"
|
||||
VALUE "OriginalFilename", "Puer.exe\000"
|
||||
VALUE "LegalCopyright", "\251 2025 Friends of Svetopaper\000"
|
||||
VALUE "ProductName", "Pu'er tea\000"
|
||||
VALUE "ProductVersion", "1.0\000"
|
||||
END
|
||||
END
|
||||
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x419, 0x4B0
|
||||
END
|
||||
END
|
||||
|
||||
// *************************************************************************************************
|
||||
Binary file not shown.
@@ -3,6 +3,7 @@ include template.inc
|
||||
entry_point proc
|
||||
invoke GetModuleHandle, NULL ; Взять хэндл пpогpаммы
|
||||
mov hInstance,rax ; Под Win32, hmodule==hinstance mov hInstance,eax
|
||||
|
||||
invoke WinMain, hInstance,NULL,CommandLine, SW_SHOWDEFAULT ; вызвать основную функцию
|
||||
invoke ExitProcess, rax ; Выйти из пpогpаммы.
|
||||
; Возвpащаемое значение, помещаемое в eax, беpется из WinMain'а.
|
||||
@@ -15,7 +16,7 @@ WinMain proc hInst:HINSTANCE,hPrevInst:HINSTANCE,CmdLine:LPSTR,CmdShow:QWORD
|
||||
;регистрация оконного класса
|
||||
push hInstance
|
||||
pop wc.hInstance
|
||||
invoke LoadIcon,NULL,IDI_APPLICATION
|
||||
invoke LoadIcon,wc.hInstance,IDI_ICON
|
||||
mov wc.hIcon,rax
|
||||
mov wc.hIconSm,rax
|
||||
invoke LoadCursor,NULL,IDC_ARROW
|
||||
Reference in New Issue
Block a user