I'm developing a win32 application with Visual Studio 2008 on Windows Vista. I specify the iron resource in the resource file:
IDI_MEXPLORER ICON DISCARDABLE "..\\resource\\icon\\mexplorer.ico"
However, I get a generic application icon on my title bar. What's weird is that it is ONLY in the title bar where I get the generic icon. In the taskbar, Windows explorer, and in the desktop shortcut, the icon is the correct one.
most often an icon file holds the same image at different sizes, and Windows chooses the one that fits its needs. Maybe your icon isn't available at the size Windows would like? I suggest you compare your current situation with other projects you did successfully.
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Please use <PRE> tags for code snippets, they improve readability. CP Vanity has been updated to V2.4
In both cases, we are receiving only one buffer. (WSABUF allows to specify more then 1 recv buffer).
And now, in case of recv, i can do something like this:
1. i got my recv buffer size, lets say 1024 bytes and doing recv.
2. Ok, i got some data and its length is 512 bytes and it has been copied to my recv buffer. But i know, that i should receive 1024 bytes of data.
3. So i am going to recv data in a loop until all 1024 bytes arrived.
4. Ok, i got some data again and it seems like it is next 512 bytes, but this time i am calling recv like this:
int recved = ::recv(sock, Buffer + already_received_number_of_bytes, size, 0);
So the rest of received data is appended to my recv buffer and in the end my recv buffer contains all data.
The question is: how can i do this with WSARecv ?
I am invoking the same dialog from 2 places (At the first place the call is using domodal(), the second place the call is using create and showwindow)
I want to disable a few button controls when I call the dialog using domodal() but the same buttons should be enabled during the next modeless call.
kindly suggest me how to enable/disable a button when opening the dialog using domodal()
You can use CWnd::EnableWindow() to enable/disable buttons... you should however, do this from within the class (i.e. an external class should probably not be controlling buttons on a different class directly). So you can maybe set a control variable in when you create the dialog class so that you can handle the enabling/disabling OnInitDialog() (the proper place to initialize GUI components).
It's impossible to give an answer to such questions in a technical forum. You need to analyse your requirements and figure out how you wish to represent the data in your charts. The chances are that you will be drawing lines and blocks so the GDI+[^] classes will probably be of some use.
I want to develop an application with MFC,which has similar functions to Gantt
I am assuming you have 3-4 yrs of development experience in MFC. if you want to develop your own charting control, you can go through GDi and GDI+ classes, which provide you low level access to window graphics.
Otherwise google is always your good friends for developer!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture