win 32 api help

Started by
2 comments, last by hughiecoles 16 years ago
i was making a button on my window ..but as soon it is made it disappears forever. iam just able to caught a glimpse of it.iam working in dev c++ i used this HWND hBtn = NULL; hBtn = CreateWindow("BUTTON","a", WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON, 50,50,100,25, hWnd, (HMENU)103, // NULL, hInstance,NULL); also i wrote this after creating my main window and before the while loop which runs continuously. can someone help thanks
Advertisement
any suggestions?
That looks fine to me. Can you post more code?
try putting it in the WM_CREATE message handler
--------------------------------------Not All Martyrs See Divinity, But At Least You Tried

This topic is closed to new replies.

Advertisement