13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 |
* GNU General Public License for more details. |
* GNU General Public License for more details. |
15 |
* |
* |
|
* You should have received a copy of the GNU General Public License |
|
|
* along with WinPT; if not, write to the Free Software Foundation, |
|
|
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
|
16 |
*/ |
*/ |
17 |
#ifdef HAVE_CONFIG_H |
#ifdef HAVE_CONFIG_H |
18 |
#include <config.h> |
#include <config.h> |
95 |
static int cb_pos = 0; |
static int cb_pos = 0; |
96 |
|
|
97 |
if (!opaque && !what && !type && !curretn && !total) { |
if (!opaque && !what && !type && !curretn && !total) { |
98 |
memset (cb, 0, sizeof cb); |
memset (cb, 0, sizeof (cb)); |
99 |
cb_pos = 0; |
cb_pos = 0; |
100 |
return; |
return; |
101 |
} |
} |
109 |
cb[cb_pos] = '\0'; |
cb[cb_pos] = '\0'; |
110 |
|
|
111 |
SetDlgItemText (dlg_hwnd, IDC_KEYPROG_CB, cb); |
SetDlgItemText (dlg_hwnd, IDC_KEYPROG_CB, cb); |
112 |
|
if (GetForegroundWindow () != dlg_hwnd) |
113 |
|
SetForegroundWindow (dlg_hwnd); |
114 |
} |
} |
115 |
|
|
116 |
|
|