Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a9f96938
Commit
a9f96938
authored
Jan 19, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Jan 19, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmine: Use WIN32_LEAN_AND_MEAN.
parent
5d629e7c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
dialog.c
programs/winemine/dialog.c
+2
-0
main.c
programs/winemine/main.c
+7
-5
No files found.
programs/winemine/dialog.c
View file @
a9f96938
...
...
@@ -18,6 +18,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include "main.h"
#include "dialog.h"
...
...
programs/winemine/main.c
View file @
a9f96938
...
...
@@ -18,10 +18,12 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define WIN32_LEAN_AND_MEAN
#include <string.h>
#include <time.h>
#include <windows.h>
#include <
windowsx
.h>
#include <
stdlib
.h>
#include "main.h"
#include "dialog.h"
#include "resource.h"
...
...
@@ -55,13 +57,13 @@ int WINAPI WinMain( HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR cmdline, int cmd
wc
.
lpszMenuName
=
"MENU_WINEMINE"
;
wc
.
lpszClassName
=
appname
;
if
(
!
RegisterClass
(
&
wc
))
exit
(
1
);
if
(
!
RegisterClass
(
&
wc
))
ExitProcess
(
1
);
hWnd
=
CreateWindow
(
appname
,
appname
,
wnd_style
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
0
,
0
,
hInst
,
NULL
);
if
(
!
hWnd
)
exit
(
1
);
if
(
!
hWnd
)
ExitProcess
(
1
);
ShowWindow
(
hWnd
,
cmdshow
);
UpdateWindow
(
hWnd
);
...
...
@@ -111,8 +113,8 @@ LRESULT WINAPI MainProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
case
WM_MOVE
:
WINE_TRACE
(
"WM_MOVE
\n
"
);
board
.
pos
.
x
=
GET_X_LPARAM
(
lParam
);
board
.
pos
.
y
=
GET_Y_LPARAM
(
lParam
);
board
.
pos
.
x
=
(
short
)
LOWORD
(
lParam
);
board
.
pos
.
y
=
(
short
)
HIWORD
(
lParam
);
return
0
;
case
WM_DESTROY
:
...
...
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