Skip to content

Instantly share code, notes, and snippets.

@Seth-Johnson
Last active August 29, 2015 14:10
Show Gist options
  • Save Seth-Johnson/c254b986e81d030223a1 to your computer and use it in GitHub Desktop.
Save Seth-Johnson/c254b986e81d030223a1 to your computer and use it in GitHub Desktop.
int theRandomNumber = getRandomNumber();
int currentGuess = 0;
int tries = 0;
std::string triesString = "Tries: " + tries;
SendMessage(g_hEdit_Answer, EM_SETCUEBANNER, 0, (LPARAM)L"Enter guess..");
SendMessage(g_hLabelEdit_Result, WM_SETTEXT, 0, (LPARAM)L"Guess a number between 0 and 99.");
SendMessage(g_hLabelEdit_Info, WM_SETTEXT, 0, (LPARAM)triesString.c_str());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment