|
i have dialog based application in which i add menu form menu resource now i want to set font name and background colour of menu items but it never get reflected.please anyone tell me how to change the font name and background colour of menu in dialog based application in vc++,mfc
|
|
|
|
|
|
Hi All,
I have an application that is loading a iso file. iso file has many packages to complete the application but it takes time to open an application because everytime it load all packages. So I want to take snapshot like thing So that i can resume the application from where I left it before.
Is there any mechanism to do so?
|
|
|
|
|
An application may save its state in order to continue his work at next startup. Have a look at the Memento design pattern [^] (also have a look at the beautiful Memento film ).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hello Friends....
What is the Empty Class size.
this is a interview question...
Best Regard's
Mathy's
|
|
|
|
|
|
[personal rant]
I think just a dumb interviewer may ask such a question.
[/personal rant]
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I was thinking the same thing - that is a seriously assinine question. Just what does that test? Your knowledge of damned near useless trivia?
L u n a t i c F r i n g e
|
|
|
|
|
LunaticFringe wrote: I was thinking the same thing - that is a seriously assinine question. Just what does that test? Your knowledge of damned near useless trivia?
Well, you expressed better than me my feelings.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hunh. That's odd - usually, I only open my mouth to change feet.
L u n a t i c F r i n g e
|
|
|
|
|
See here.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hello Friends
In Mfc what is the differents between post message and send message....
explain post message and send message....Plz
Best Regard's
Mathy's
|
|
|
|
|
The SendMessage call doesn't return until the target window has handled the message you've sent it.
The PostMessage call puts the message in the thread's message queue and returns immediately, before the message has been handled.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
CodeProject MVP for 2010 - who'd'a thunk it!
|
|
|
|
|
where is to be used....... in MFc
Best Regard's
Mathy's
|
|
|
|
|
What do you mean by that exactly?
SendMessage and PostMessage can be used in MFC, but generally you'll use an MFC class's methods to hide those calls.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
CodeProject MVP for 2010 - who'd'a thunk it!
|
|
|
|
|
mathy wrote: In Mfc what is the differents between post message and send message....
While SendMessage() and PostMessage() can be used within MFC code, they are not related. They are from the Windows SDK.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Another interview question? Don't accept an offer from that place!
|
|
|
|
|
How COM Object gets removed from the memory?
Suppose there are 4 clients using our COM Component, One by One they goes out of scope ..At which point the component knows that it has to unload from memory.? Once the COM Object's reference count reached to zero then at this point which mechanism works to remove it from the memory.
Thanks
|
|
|
|
|
Do u mean the interface count?
if so then [^]
Величие не Бога может быть недооценена.
|
|
|
|
|
The COM object's 'Release' method would call delete this; when the reference count is zero to delete itself.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
CodeProject MVP for 2010 - who'd'a thunk it!
|
|
|
|
|
pandit84 wrote: Once the COM Object's reference count reached to zero then at this point which mechanism works to remove it from the memory.
It is a responsibility of the COM object developer. When the reference count goes to zero then there are no references pending on the object (probably there aren't...: the reference count is shared mechanism of both the COM server and the client) and the object may choose to free its COM resources (as it usually do).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Thanks a lot for your great reply
|
|
|
|
|
You are welcome.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
now, i simulate one desktop.
After i clean the full rubbish, which message is sent to the desktop for notifying you to change the icon of rubbish.
thank you very much.
|
|
|
|
|
It has always been called as recycle bin.
People may not understand you if you call it by other names.
Anyway, try doing an invalidate on the desktop.
|
|
|
|