move or add ceStackButtonsRight

This commit is contained in:
ehouse 2008-02-16 17:19:06 +00:00
parent 4a464b6ef5
commit 02f3e10edc
2 changed files with 8 additions and 11 deletions

View file

@ -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.
*
* 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;
GameInfoState* giState;
/* #ifdef DEBUG */
/* { */
/* char buf[64]; */
/* messageToBuf( message, buf, sizeof(buf) ); */
/* XP_LOGF( "%s: %s", __func__, buf ); */
/* } */
/* #endif */
if ( message == WM_INITDIALOG ) {
SetWindowLong( hDlg, GWL_USERDATA, lParam );
giState = (GameInfoState*)lParam;
giState->hDlg = hDlg;
globals = giState->globals;
ceStackButtonsRight( globals, hDlg );
giState->newGameCtx = newg_make( MPPARM(globals->mpool)
giState->isNewGame,
&globals->util,
@ -520,7 +514,6 @@ GameInfo(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
if ( giState->isNewGame ) {
(void)SetWindowText( hDlg, L"New game" );
}
ceStackButtonsRight( globals, hDlg );
return TRUE;
} else {

View file

@ -21,6 +21,7 @@
#include <stdio.h>
#include "cehntlim.h"
#include "ceutil.h"
static void
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 );
hState = (HintLimitsState*)lParam;
globals = hState->globals;
ceStackButtonsRight( globals, hDlg );
return TRUE;
} else {
hState = (HintLimitsState*)GetWindowLong( hDlg, GWL_USERDATA );