winapi - How to use DialogBox in Windows API -


i'm learning windows api weeks, got problem, code this

lresult callback mainwndproc(hwnd hwnd, uint message, wparam wparam, lparam lparam){ switch(message){   case(...)     dialogbox(hinstance,makeintresource(idd_mydialog),hwnd,(dlgproc)mydialogproc);     return 0; }  bool mydialogproc(hwnd hwnd, uint message, wparam wparam, lparam lparam){     switch (message){       ...            }     return false; } 

i don't know else should before use dialogbox should place enddialog(). idd_mydialog resource file created myself. don't understand hinstance , how it, think need simple example, can know how use dialogbox. thank helping!


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -