what u can do is derive a class from CSocket and override the onRecieve() virtual funtion which will tell the socket when data is coming then u can use Recieve() fuction to recieve the data.so there is no need to wait when the data is going to come
CMySocket:public CSocket
{
// overide...
if ur using the fucntion in ondraw whydont u send the pDC in OnDraw fuction as parameter to GetSquare and then u can directly draw to the DC or u can create a compatible bitmap and return the bitmap and then bitblit it the second is round about way i prefer the first one
You can use CMenu for creating menu's runtime member functions like create will create a menu and u can use AppendMenu to create a menu item. If u want to create a popmenu u have to use CreatePopmenu and then u can use Insert Menu. for exampel
CMenu menu,menu1;
menu.CreateMenu()...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.