severehotfix
January 13th, 2008, 02:49 AM
Very simple but since I am still new to APi programing, I can't find my own mistake
LRESULT CALLBACK DlgProc(HINSTANCE hi, UINT msg, WPARAM wapa, LPARAM lapa)
{
switch(msg){
case WM_COMMAND:
switch(LOWORD(wp)){case IDOK:
EndDialog(hi,0);
break;
}
brea;
}
retun TRUE;
}
int WINAPI WinMain(HINSTANCE hi, UINT msg, WPARAM wapa, LPARAM lapa )
{
DialogBox(hi,MAKEINTRESOURCE(DIALOGID),NULL,(DLGPROC)DlgProc);
return 0;
}
My dilog with only one OK button doesn;t show up completely,
only the button and the whole dilog body is unseen.
Thanks
LRESULT CALLBACK DlgProc(HINSTANCE hi, UINT msg, WPARAM wapa, LPARAM lapa)
{
switch(msg){
case WM_COMMAND:
switch(LOWORD(wp)){case IDOK:
EndDialog(hi,0);
break;
}
brea;
}
retun TRUE;
}
int WINAPI WinMain(HINSTANCE hi, UINT msg, WPARAM wapa, LPARAM lapa )
{
DialogBox(hi,MAKEINTRESOURCE(DIALOGID),NULL,(DLGPROC)DlgProc);
return 0;
}
My dilog with only one OK button doesn;t show up completely,
only the button and the whole dilog body is unseen.
Thanks