BOOL CDLGabout::OnInitDialog() { Language_SetWndStaticText(this); CDialog::OnInitDialog(); AutoSize(); Authors(); return TRUE; // return TRUE unless you set the focus to a control }
int main(int argc, char **argv) { _ksys_get_screen_size (&ScreenX, &ScreenY); OffsetX=ScreenX/2-Width/2; OffsetY=ScreenY/2-Height/2; draw_window(); while (!0) { if (GAME_TYPE==1) { _ksys_delay(15-Max_Speed); } else { _ksys_delay(1); } Key=getKey(); if (GAME_TYPE==-1) return 0; if (GAME_TYPE==0) MainMenu (); if (GAME_TYPE==1) GamePlay (); if (GAME_TYPE==2) ShowHelp (); if (GAME_TYPE==3) LevelEditor(); if (GAME_TYPE==4) Authors(); Update(); } }