solved the second problem : i can pass a param to the callback function without any problem now... But the main problem is still here...
Please i nedd some help
S.D.
Hi,
In GDI+, some of the DrawImage functions have a parameter for a callback function to abort drawing. In the MSDN doc, it is said that the callback function is called several times, but with my experience, it seems that the callback function is called only once at the beginning of the drawing...
You're right ! I've just found it at the same time... this is the solution. I need to call AFX_MANAGE_STATE(AfxGetStaticModuleState()) before calling Create() member of CAsyncSocket !
thank you very much for your search
S.
Hi all,
I've got a problem using CAsyncSocket in an ATL control (dll generated with ATL Appwizard) : The Create() method asserts because AfxGetInstanceHandle returns NULL.
Is there any solution to solve this ?
thanks in advance
Stephd
Hi all,
I would like to build an small app that can be embedded into an IE page, as for example real player does (or flash player does but i don't know if it is the same) but i'm afraid to not know how to start...
I'm familiar with MFC app but not with COM or other things like that...
What...
Hi,
I've a CHtmlView in my app, and i need to send the the HTTP server a special header to inform that the HtmlView is embedded into a special software.
For this i use CHtmlView->Navigate2(URL,NULL,HEADERS);
it works well for the first call but after that come the problems : when i want to...
Is it only a read of the registry key HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/CurrentVersion/ProductId or is there any other friendly api or code to get this info ?...
thanks
Does anybody know how to retrieve the windows registration number showed in the system control panel in the field "registered user" . this number is the XXXXX-OEM-XXXXXXX-XXXXX
thanks in advance
stephd
In fact, it is quite strange because it depends on the OS. On win 98 or win Me, there is no icon in the task bar button, but on Win XP pro, the icon is well displayed... So i suppose it is a windows problem... Is there anyway to display the icon on win 98/Me ?...
S.
yes, in the OnInitDialog, there is theses two lines :
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon
So the WM_SETICON message is used... but it does not work...
thanks anyway for your answer
S.
Hi,
I've a dialog without title bar, so the button in the taskbar has no icon and no text. With a SetWindowText in the OnInitDialog, i can set a text for this button, but i really don't know how to set the icon... Is it possible and if yes, how ?
note : when i press alt-tab to show all the...
thanks for the info. I will read it.
However, i think i found a solution : just override OnCommand function because all WM_COMMAND goes throught it and toolbar "events" are WM_COMMAND messages.
stephd
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.