I have a dialogbox that pops up containing two static text controls and a text edit control. Now I want to change the content of the second static control.
Here's what I have tried:
In my resource .h
#define IDC_SCORE 103 // second static text control
#define IDC_TEXT1 104
my resource script
LTEXT "Your score:", IDC_TEXT1, 18, 3, 39, 10
LTEXT "0", IDC_SCORE, 58, 3, 29, 10 // second static text control
Now in my dialogProcedure while handling the WM_INITDIALOG message i call SetDlgItemInt(hwnd, IDC_SCORE,score, FALSE );
But it doesn't change from zero to the new value.
From reading a previous discussion on this topic I can't see anything wrong with my code. Maybe you can?
I'm also including an attachment with the code. It's mostly in the hiscore.c in the add_highscore().