mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-16 15:41:16 +01:00
remove positionDlg; plug leak
This commit is contained in:
parent
c03f571a40
commit
809e6757de
1 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
/* -*-mode: C; fill-column: 77; c-basic-offset: 4; -*- */
|
||||
/*
|
||||
* Copyright 2002 by Eric House (fixin@peak.org). All rights reserved.
|
||||
* Copyright 2002-2004 by Eric House (fixin@peak.org). All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
|
@ -41,9 +41,11 @@ stuffTextInField( HWND hDlg, CEAppGlobals* globals, XWStreamCtxt* stream )
|
|||
XP_FREE( globals->mpool, sbuf );
|
||||
|
||||
SetDlgItemText( hDlg, ID_EDITTEXT, wbuf );
|
||||
XP_FREE( globals->mpool, wbuf );
|
||||
|
||||
/* This isn't working to stop the highlighting of text */
|
||||
/* SendDlgItemMessage( hDlg, ID_EDITTEXT, EM_SETSEL, 0, 0L ); */
|
||||
SendDlgItemMessage( hDlg, ID_EDITTEXT, EM_SETSEL, -1, 0L );
|
||||
XP_LOGF( "called SendDlgItemMessage with -1" );
|
||||
} /* stuffTextInField */
|
||||
|
||||
LRESULT CALLBACK
|
||||
|
@ -69,8 +71,6 @@ StrBox(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
/* ceCenterCtl( hDlg, IDOK ); */
|
||||
}
|
||||
|
||||
positionDlg( hDlg );
|
||||
|
||||
stuffTextInField( hDlg, globals, init->stream );
|
||||
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue