I've made a window with a few buttons in it. When you click on the buttons, they don't work if I do what is shown below. I have no idea why it doesn't quite work, and was hoping that some1 could help me out.
Code:
if(LOWORD(wParam) == 5){
if(HIWORD(wParam) == BN_CLICKED){
HostSession();
}
}
The function HostSession is used as below. I'm probably wrong, but I think it might be the void, anyway, hope some1 can help.
Code:
void HostSession()
{
MessageBox(NULL, "Only testing if the function works", "Testing", MB_OK);
};