mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-13 20:48:02 +01:00
move or add ceStackButtonsRight
This commit is contained in:
parent
4a464b6ef5
commit
02f3e10edc
2 changed files with 8 additions and 11 deletions
xwords4/wince
|
@ -1,6 +1,6 @@
|
||||||
/* -*-mode: C; fill-column: 77; c-basic-offset: 4; -*- */
|
/* -*-mode: C; fill-column: 77; c-basic-offset: 4; compile-command: "make TARGET_OS=wince DEBUG=TRUE"; -*- */
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2006 by Eric House (xwords@eehouse.org). All rights
|
* Copyright 2002-2008 by Eric House (xwords@eehouse.org). All rights
|
||||||
* reserved.
|
* reserved.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
|
@ -489,20 +489,14 @@ GameInfo(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
XP_U16 id;
|
XP_U16 id;
|
||||||
GameInfoState* giState;
|
GameInfoState* giState;
|
||||||
|
|
||||||
/* #ifdef DEBUG */
|
|
||||||
/* { */
|
|
||||||
/* char buf[64]; */
|
|
||||||
/* messageToBuf( message, buf, sizeof(buf) ); */
|
|
||||||
/* XP_LOGF( "%s: %s", __func__, buf ); */
|
|
||||||
/* } */
|
|
||||||
/* #endif */
|
|
||||||
|
|
||||||
if ( message == WM_INITDIALOG ) {
|
if ( message == WM_INITDIALOG ) {
|
||||||
SetWindowLong( hDlg, GWL_USERDATA, lParam );
|
SetWindowLong( hDlg, GWL_USERDATA, lParam );
|
||||||
giState = (GameInfoState*)lParam;
|
giState = (GameInfoState*)lParam;
|
||||||
giState->hDlg = hDlg;
|
giState->hDlg = hDlg;
|
||||||
globals = giState->globals;
|
globals = giState->globals;
|
||||||
|
|
||||||
|
ceStackButtonsRight( globals, hDlg );
|
||||||
|
|
||||||
giState->newGameCtx = newg_make( MPPARM(globals->mpool)
|
giState->newGameCtx = newg_make( MPPARM(globals->mpool)
|
||||||
giState->isNewGame,
|
giState->isNewGame,
|
||||||
&globals->util,
|
&globals->util,
|
||||||
|
@ -520,7 +514,6 @@ GameInfo(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
if ( giState->isNewGame ) {
|
if ( giState->isNewGame ) {
|
||||||
(void)SetWindowText( hDlg, L"New game" );
|
(void)SetWindowText( hDlg, L"New game" );
|
||||||
}
|
}
|
||||||
ceStackButtonsRight( globals, hDlg );
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "cehntlim.h"
|
#include "cehntlim.h"
|
||||||
|
#include "ceutil.h"
|
||||||
|
|
||||||
static void
|
static void
|
||||||
initComboBox( HWND hDlg, XP_U16 id, XP_U16 startVal )
|
initComboBox( HWND hDlg, XP_U16 id, XP_U16 startVal )
|
||||||
|
@ -61,6 +62,9 @@ HintLimitsDlg( HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam )
|
||||||
SetWindowLong( hDlg, GWL_USERDATA, lParam );
|
SetWindowLong( hDlg, GWL_USERDATA, lParam );
|
||||||
hState = (HintLimitsState*)lParam;
|
hState = (HintLimitsState*)lParam;
|
||||||
globals = hState->globals;
|
globals = hState->globals;
|
||||||
|
|
||||||
|
ceStackButtonsRight( globals, hDlg );
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
} else {
|
} else {
|
||||||
hState = (HintLimitsState*)GetWindowLong( hDlg, GWL_USERDATA );
|
hState = (HintLimitsState*)GetWindowLong( hDlg, GWL_USERDATA );
|
||||||
|
|
Loading…
Add table
Reference in a new issue