Message Box Example (Basic)

#include <windows.h>

int main(void){
    
    MessageBoxW(
        NULL,
        L"My first message box!".
        L"My title",  
        MB_YESNOCANCEL | MB_ICONEXCLAMATION   //the options the message box will have + icon    
    );
    return EXIT_SUCCESS 
}

hThread --> h is the Hungarian notation which windows uses

Last updated