dev.gamez.lv Forum Index dev.gamez.lv
Latvian Game Developers Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 

Pogas

 
dev.gamez.lv Forum Index -> Programmēšana
View previous topic :: View next topic  
Author Message
banshee



Joined: 22 Aug 2005
Posts: 10
Location: Behind you

PostPosted: Fri Sep 23, 2005 5:01 pm    Post subject: Pogas

Khem, esmu iesaaceejs un man ir kaarteejaa probleema tagad ar win32 pogaam:

Probleema ir taada, ka poga nesanjem sev nepiecieshamo zinju
Code:

/// pogu taisa taa

hWndPoga=CreateWindow("BUTTON","Poga",WS_CHILD|WS_VISIBLE|BS_DEFPUSHBUTTON,0,0,64,32,hWnd,(HMENU)IDC_POGA,hInstance,0);

// ,kur HWND hWndPoga, hWnd;
// #define IDC_POGA

// pogu apskata galvenaa logaWinProc(HWND ...........)

case WM_COMMAND:
{
   int trigger = LOWORD(wParam);
   switch(trigger){
      case IDC_POGA:
         {
            MessageBox(hWnd,"BUTTON","BUT",MB_OK);
         }
      break;
   }
}

_________________
If you hear me screaming- you'll be dead


Last edited by banshee on Fri Sep 23, 2005 10:19 pm; edited 1 time in total
Back to top
View user's profile Send e-mail
qwerty
Guest





PostPosted: Fri Sep 23, 2005 10:05 pm    Post subject:

IDC_POGA un IDC_PARSE vērtības sakrīt?
Back to top
banshee



Joined: 22 Aug 2005
Posts: 10
Location: Behind you

PostPosted: Fri Sep 23, 2005 10:20 pm    Post subject:

srry, mana kljuuda - tas ir viens un tas pac
_________________
If you hear me screaming- you'll be dead
Back to top
View user's profile Send e-mail
Display posts from previous:   
dev.gamez.lv Forum Index -> Programmēšana All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group