Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
95105908
Commit
95105908
authored
Oct 19, 2000
by
Eric Williams
Committed by
Alexandre Julliard
Oct 19, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed GROUP to PROGGROUP.
parent
220312e9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
22 deletions
+22
-22
group.c
programs/progman/group.c
+10
-10
grpfile.c
programs/progman/grpfile.c
+3
-3
progman.h
programs/progman/progman.h
+1
-1
program.c
programs/progman/program.c
+8
-8
No files found.
programs/progman/group.c
View file @
95105908
...
@@ -102,11 +102,11 @@ HLOCAL GROUP_AddGroup(LPCSTR lpszName, LPCSTR lpszGrpFile, INT nCmdShow,
...
@@ -102,11 +102,11 @@ HLOCAL GROUP_AddGroup(LPCSTR lpszName, LPCSTR lpszGrpFile, INT nCmdShow,
/* FIXME shouldn't be necessary */
/* FIXME shouldn't be necessary */
BOOL
bSuppressShowWindow
)
BOOL
bSuppressShowWindow
)
{
{
GROUP
*
group
,
*
prior
;
PROG
GROUP
*
group
,
*
prior
;
MDICREATESTRUCT
cs
;
MDICREATESTRUCT
cs
;
INT
seqnum
;
INT
seqnum
;
HLOCAL
hPrior
,
*
p
;
HLOCAL
hPrior
,
*
p
;
HLOCAL
hGroup
=
LocalAlloc
(
LMEM_FIXED
,
sizeof
(
GROUP
));
HLOCAL
hGroup
=
LocalAlloc
(
LMEM_FIXED
,
sizeof
(
PROG
GROUP
));
HLOCAL
hName
=
LocalAlloc
(
LMEM_FIXED
,
1
+
lstrlen
(
lpszName
));
HLOCAL
hName
=
LocalAlloc
(
LMEM_FIXED
,
1
+
lstrlen
(
lpszName
));
HLOCAL
hGrpFile
=
LocalAlloc
(
LMEM_FIXED
,
1
+
lstrlen
(
lpszGrpFile
));
HLOCAL
hGrpFile
=
LocalAlloc
(
LMEM_FIXED
,
1
+
lstrlen
(
lpszGrpFile
));
if
(
!
hGroup
||
!
hName
||
!
hGrpFile
)
if
(
!
hGroup
||
!
hName
||
!
hGrpFile
)
...
@@ -185,7 +185,7 @@ HLOCAL GROUP_AddGroup(LPCSTR lpszName, LPCSTR lpszGrpFile, INT nCmdShow,
...
@@ -185,7 +185,7 @@ HLOCAL GROUP_AddGroup(LPCSTR lpszName, LPCSTR lpszGrpFile, INT nCmdShow,
VOID
GROUP_ModifyGroup
(
HLOCAL
hGroup
)
VOID
GROUP_ModifyGroup
(
HLOCAL
hGroup
)
{
{
GROUP
*
group
=
LocalLock
(
hGroup
);
PROG
GROUP
*
group
=
LocalLock
(
hGroup
);
CHAR
szName
[
MAX_PATHNAME_LEN
];
CHAR
szName
[
MAX_PATHNAME_LEN
];
CHAR
szFile
[
MAX_PATHNAME_LEN
];
CHAR
szFile
[
MAX_PATHNAME_LEN
];
lstrcpyn
(
szName
,
LocalLock
(
group
->
hName
),
MAX_PATHNAME_LEN
);
lstrcpyn
(
szName
,
LocalLock
(
group
->
hName
),
MAX_PATHNAME_LEN
);
...
@@ -216,7 +216,7 @@ VOID GROUP_ModifyGroup(HLOCAL hGroup)
...
@@ -216,7 +216,7 @@ VOID GROUP_ModifyGroup(HLOCAL hGroup)
/* FIXME shouldn't be necessary */
/* FIXME shouldn't be necessary */
VOID
GROUP_ShowGroupWindow
(
HLOCAL
hGroup
)
VOID
GROUP_ShowGroupWindow
(
HLOCAL
hGroup
)
{
{
GROUP
*
group
=
LocalLock
(
hGroup
);
PROG
GROUP
*
group
=
LocalLock
(
hGroup
);
ShowWindow
(
group
->
hWnd
,
group
->
nCmdShow
);
ShowWindow
(
group
->
hWnd
,
group
->
nCmdShow
);
UpdateWindow
(
group
->
hWnd
);
UpdateWindow
(
group
->
hWnd
);
}
}
...
@@ -228,16 +228,16 @@ VOID GROUP_ShowGroupWindow(HLOCAL hGroup)
...
@@ -228,16 +228,16 @@ VOID GROUP_ShowGroupWindow(HLOCAL hGroup)
VOID
GROUP_DeleteGroup
(
HLOCAL
hGroup
)
VOID
GROUP_DeleteGroup
(
HLOCAL
hGroup
)
{
{
GROUP
*
group
=
LocalLock
(
hGroup
);
PROG
GROUP
*
group
=
LocalLock
(
hGroup
);
Globals
.
hActiveGroup
=
0
;
Globals
.
hActiveGroup
=
0
;
if
(
group
->
hPrior
)
if
(
group
->
hPrior
)
((
GROUP
*
)
LocalLock
(
group
->
hPrior
))
->
hNext
=
group
->
hNext
;
((
PROG
GROUP
*
)
LocalLock
(
group
->
hPrior
))
->
hNext
=
group
->
hNext
;
else
Globals
.
hGroups
=
group
->
hNext
;
else
Globals
.
hGroups
=
group
->
hNext
;
if
(
group
->
hNext
)
if
(
group
->
hNext
)
((
GROUP
*
)
LocalLock
(
group
->
hNext
))
->
hPrior
=
group
->
hPrior
;
((
PROG
GROUP
*
)
LocalLock
(
group
->
hNext
))
->
hPrior
=
group
->
hPrior
;
while
(
group
->
hPrograms
)
while
(
group
->
hPrograms
)
PROGRAM_DeleteProgram
(
group
->
hPrograms
,
FALSE
);
PROGRAM_DeleteProgram
(
group
->
hPrograms
,
FALSE
);
...
@@ -268,7 +268,7 @@ HLOCAL GROUP_FirstGroup()
...
@@ -268,7 +268,7 @@ HLOCAL GROUP_FirstGroup()
HLOCAL
GROUP_NextGroup
(
HLOCAL
hGroup
)
HLOCAL
GROUP_NextGroup
(
HLOCAL
hGroup
)
{
{
GROUP
*
group
;
PROG
GROUP
*
group
;
if
(
!
hGroup
)
return
(
0
);
if
(
!
hGroup
)
return
(
0
);
group
=
LocalLock
(
hGroup
);
group
=
LocalLock
(
hGroup
);
return
(
group
->
hNext
);
return
(
group
->
hNext
);
...
@@ -291,7 +291,7 @@ HLOCAL GROUP_ActiveGroup()
...
@@ -291,7 +291,7 @@ HLOCAL GROUP_ActiveGroup()
HWND
GROUP_GroupWnd
(
HLOCAL
hGroup
)
HWND
GROUP_GroupWnd
(
HLOCAL
hGroup
)
{
{
GROUP
*
group
;
PROG
GROUP
*
group
;
if
(
!
hGroup
)
return
(
0
);
if
(
!
hGroup
)
return
(
0
);
group
=
LocalLock
(
hGroup
);
group
=
LocalLock
(
hGroup
);
return
(
group
->
hWnd
);
return
(
group
->
hWnd
);
...
@@ -304,7 +304,7 @@ HWND GROUP_GroupWnd(HLOCAL hGroup)
...
@@ -304,7 +304,7 @@ HWND GROUP_GroupWnd(HLOCAL hGroup)
LPCSTR
GROUP_GroupName
(
HLOCAL
hGroup
)
LPCSTR
GROUP_GroupName
(
HLOCAL
hGroup
)
{
{
GROUP
*
group
;
PROG
GROUP
*
group
;
if
(
!
hGroup
)
return
(
0
);
if
(
!
hGroup
)
return
(
0
);
group
=
LocalLock
(
hGroup
);
group
=
LocalLock
(
hGroup
);
return
(
LocalLock
(
group
->
hName
));
return
(
LocalLock
(
group
->
hName
));
...
...
programs/progman/grpfile.c
View file @
95105908
...
@@ -23,7 +23,7 @@ static BOOL GRPFILE_ReadFileToBuffer(LPCSTR, HLOCAL*, INT*);
...
@@ -23,7 +23,7 @@ static BOOL GRPFILE_ReadFileToBuffer(LPCSTR, HLOCAL*, INT*);
static
HLOCAL
GRPFILE_ScanGroup
(
LPCSTR
,
INT
,
LPCSTR
,
BOOL
);
static
HLOCAL
GRPFILE_ScanGroup
(
LPCSTR
,
INT
,
LPCSTR
,
BOOL
);
static
HLOCAL
GRPFILE_ScanProgram
(
LPCSTR
,
INT
,
LPCSTR
,
INT
,
static
HLOCAL
GRPFILE_ScanProgram
(
LPCSTR
,
INT
,
LPCSTR
,
INT
,
LPCSTR
,
HLOCAL
,
LPCSTR
);
LPCSTR
,
HLOCAL
,
LPCSTR
);
static
BOOL
GRPFILE_DoWriteGroupFile
(
HFILE
file
,
GROUP
*
group
);
static
BOOL
GRPFILE_DoWriteGroupFile
(
HFILE
file
,
PROG
GROUP
*
group
);
/***********************************************************************
/***********************************************************************
*
*
...
@@ -340,7 +340,7 @@ static HLOCAL GRPFILE_ScanProgram(LPCSTR buffer, INT size,
...
@@ -340,7 +340,7 @@ static HLOCAL GRPFILE_ScanProgram(LPCSTR buffer, INT size,
BOOL
GRPFILE_WriteGroupFile
(
HLOCAL
hGroup
)
BOOL
GRPFILE_WriteGroupFile
(
HLOCAL
hGroup
)
{
{
CHAR
szPath
[
MAX_PATHNAME_LEN
];
CHAR
szPath
[
MAX_PATHNAME_LEN
];
GROUP
*
group
=
LocalLock
(
hGroup
);
PROG
GROUP
*
group
=
LocalLock
(
hGroup
);
OFSTRUCT
dummy
;
OFSTRUCT
dummy
;
HFILE
file
;
HFILE
file
;
BOOL
ret
;
BOOL
ret
;
...
@@ -499,7 +499,7 @@ static UINT GRPFILE_WriteWithChecksum(HFILE file, LPCSTR str, UINT size)
...
@@ -499,7 +499,7 @@ static UINT GRPFILE_WriteWithChecksum(HFILE file, LPCSTR str, UINT size)
* GRPFILE_DoWriteGroupFile
* GRPFILE_DoWriteGroupFile
*/
*/
static
BOOL
GRPFILE_DoWriteGroupFile
(
HFILE
file
,
GROUP
*
group
)
static
BOOL
GRPFILE_DoWriteGroupFile
(
HFILE
file
,
PROG
GROUP
*
group
)
{
{
BYTE
buffer
[
34
];
BYTE
buffer
[
34
];
HLOCAL
hProgram
;
HLOCAL
hProgram
;
...
...
programs/progman/progman.h
View file @
95105908
...
@@ -100,7 +100,7 @@ typedef struct
...
@@ -100,7 +100,7 @@ typedef struct
/* magic `PMCC' */
/* Extension 0x8000 */
/* magic `PMCC' */
/* Extension 0x8000 */
/* End of Extensions */
/* Extension 0xffff */
/* End of Extensions */
/* Extension 0xffff */
}
GROUP
;
}
PROG
GROUP
;
typedef
struct
typedef
struct
{
{
...
...
programs/progman/program.c
View file @
95105908
...
@@ -22,7 +22,7 @@ static LRESULT PROGRAM_ProgramWndProc (HWND hWnd, UINT msg, WPARAM wParam, LPARA
...
@@ -22,7 +22,7 @@ static LRESULT PROGRAM_ProgramWndProc (HWND hWnd, UINT msg, WPARAM wParam, LPARA
{
{
HLOCAL
hProgram
=
(
HLOCAL
)
GetWindowLong
(
hWnd
,
0
);
HLOCAL
hProgram
=
(
HLOCAL
)
GetWindowLong
(
hWnd
,
0
);
PROGRAM
*
program
=
LocalLock
(
hProgram
);
PROGRAM
*
program
=
LocalLock
(
hProgram
);
GROUP
*
group
=
LocalLock
(
program
->
hGroup
);
PROG
GROUP
*
group
=
LocalLock
(
program
->
hGroup
);
group
->
hActiveProgram
=
hProgram
;
group
->
hActiveProgram
=
hProgram
;
EnableMenuItem
(
Globals
.
hFileMenu
,
PM_MOVE
,
MF_ENABLED
);
EnableMenuItem
(
Globals
.
hFileMenu
,
PM_MOVE
,
MF_ENABLED
);
EnableMenuItem
(
Globals
.
hFileMenu
,
PM_COPY
,
MF_ENABLED
);
EnableMenuItem
(
Globals
.
hFileMenu
,
PM_COPY
,
MF_ENABLED
);
...
@@ -152,7 +152,7 @@ HLOCAL PROGRAM_AddProgram(HLOCAL hGroup, HICON hIcon, LPCSTR lpszName,
...
@@ -152,7 +152,7 @@ HLOCAL PROGRAM_AddProgram(HLOCAL hGroup, HICON hIcon, LPCSTR lpszName,
LPCSTR
lpszIconFile
,
INT
nIconIndex
,
LPCSTR
lpszIconFile
,
INT
nIconIndex
,
LPCSTR
lpszWorkDir
,
INT
nHotKey
,
INT
nCmdShow
)
LPCSTR
lpszWorkDir
,
INT
nHotKey
,
INT
nCmdShow
)
{
{
GROUP
*
group
=
LocalLock
(
hGroup
);
PROG
GROUP
*
group
=
LocalLock
(
hGroup
);
PROGRAM
*
program
;
PROGRAM
*
program
;
HLOCAL
hPrior
,
*
p
;
HLOCAL
hPrior
,
*
p
;
HLOCAL
hProgram
=
LocalAlloc
(
LMEM_FIXED
,
sizeof
(
PROGRAM
));
HLOCAL
hProgram
=
LocalAlloc
(
LMEM_FIXED
,
sizeof
(
PROGRAM
));
...
@@ -222,13 +222,13 @@ HLOCAL PROGRAM_AddProgram(HLOCAL hGroup, HICON hIcon, LPCSTR lpszName,
...
@@ -222,13 +222,13 @@ HLOCAL PROGRAM_AddProgram(HLOCAL hGroup, HICON hIcon, LPCSTR lpszName,
VOID
PROGRAM_CopyMoveProgram
(
HLOCAL
hProgram
,
BOOL
bMove
)
VOID
PROGRAM_CopyMoveProgram
(
HLOCAL
hProgram
,
BOOL
bMove
)
{
{
PROGRAM
*
program
=
LocalLock
(
hProgram
);
PROGRAM
*
program
=
LocalLock
(
hProgram
);
GROUP
*
fromgroup
=
LocalLock
(
program
->
hGroup
);
PROG
GROUP
*
fromgroup
=
LocalLock
(
program
->
hGroup
);
HLOCAL
hGroup
=
DIALOG_CopyMove
(
LocalLock
(
program
->
hName
),
HLOCAL
hGroup
=
DIALOG_CopyMove
(
LocalLock
(
program
->
hName
),
LocalLock
(
fromgroup
->
hName
),
bMove
);
LocalLock
(
fromgroup
->
hName
),
bMove
);
if
(
!
hGroup
)
return
;
if
(
!
hGroup
)
return
;
/* FIXME shouldn't be necessary */
/* FIXME shouldn't be necessary */
OpenIcon
(((
GROUP
*
)
LocalLock
(
hGroup
))
->
hWnd
);
OpenIcon
(((
PROG
GROUP
*
)
LocalLock
(
hGroup
))
->
hWnd
);
if
(
!
PROGRAM_AddProgram
(
hGroup
,
if
(
!
PROGRAM_AddProgram
(
hGroup
,
#if 0
#if 0
...
@@ -274,14 +274,14 @@ VOID PROGRAM_ExecuteProgram(HLOCAL hProgram)
...
@@ -274,14 +274,14 @@ VOID PROGRAM_ExecuteProgram(HLOCAL hProgram)
VOID
PROGRAM_DeleteProgram
(
HLOCAL
hProgram
,
BOOL
bUpdateGrpFile
)
VOID
PROGRAM_DeleteProgram
(
HLOCAL
hProgram
,
BOOL
bUpdateGrpFile
)
{
{
PROGRAM
*
program
=
LocalLock
(
hProgram
);
PROGRAM
*
program
=
LocalLock
(
hProgram
);
GROUP
*
group
=
LocalLock
(
program
->
hGroup
);
PROG
GROUP
*
group
=
LocalLock
(
program
->
hGroup
);
group
->
hActiveProgram
=
0
;
group
->
hActiveProgram
=
0
;
if
(
program
->
hPrior
)
if
(
program
->
hPrior
)
((
PROGRAM
*
)
LocalLock
(
program
->
hPrior
))
->
hNext
=
program
->
hNext
;
((
PROGRAM
*
)
LocalLock
(
program
->
hPrior
))
->
hNext
=
program
->
hNext
;
else
else
((
GROUP
*
)
LocalLock
(
program
->
hGroup
))
->
hPrograms
=
program
->
hNext
;
((
PROG
GROUP
*
)
LocalLock
(
program
->
hGroup
))
->
hPrograms
=
program
->
hNext
;
if
(
program
->
hNext
)
if
(
program
->
hNext
)
((
PROGRAM
*
)
LocalLock
(
program
->
hNext
))
->
hPrior
=
program
->
hPrior
;
((
PROGRAM
*
)
LocalLock
(
program
->
hNext
))
->
hPrior
=
program
->
hPrior
;
...
@@ -308,7 +308,7 @@ VOID PROGRAM_DeleteProgram(HLOCAL hProgram, BOOL bUpdateGrpFile)
...
@@ -308,7 +308,7 @@ VOID PROGRAM_DeleteProgram(HLOCAL hProgram, BOOL bUpdateGrpFile)
HLOCAL
PROGRAM_FirstProgram
(
HLOCAL
hGroup
)
HLOCAL
PROGRAM_FirstProgram
(
HLOCAL
hGroup
)
{
{
GROUP
*
group
;
PROG
GROUP
*
group
;
if
(
!
hGroup
)
return
(
0
);
if
(
!
hGroup
)
return
(
0
);
group
=
LocalLock
(
hGroup
);
group
=
LocalLock
(
hGroup
);
return
(
group
->
hPrograms
);
return
(
group
->
hPrograms
);
...
@@ -334,7 +334,7 @@ HLOCAL PROGRAM_NextProgram(HLOCAL hProgram)
...
@@ -334,7 +334,7 @@ HLOCAL PROGRAM_NextProgram(HLOCAL hProgram)
HLOCAL
PROGRAM_ActiveProgram
(
HLOCAL
hGroup
)
HLOCAL
PROGRAM_ActiveProgram
(
HLOCAL
hGroup
)
{
{
GROUP
*
group
;
PROG
GROUP
*
group
;
if
(
!
hGroup
)
return
(
0
);
if
(
!
hGroup
)
return
(
0
);
group
=
LocalLock
(
hGroup
);
group
=
LocalLock
(
hGroup
);
if
(
IsIconic
(
group
->
hWnd
))
return
(
0
);
if
(
IsIconic
(
group
->
hWnd
))
return
(
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment