|
This is My Code , But make the taskbar looks eccentricity.
NONCLIENTMETRICS n;
n.cbSize = sizeof( NONCLIENTMETRICS );
::SystemParametersInfo( SPI_GETNONCLIENTMETRICS, sizeof(NONCLIENTMETRICS) , &n , 0);
n.iCaptionHeight = 30;
::SystemParametersInfo( SPI_SETNONCLIENTMETRICS, sizeof(NONCLIENTMETRICS) , &n , SPIF_SENDCHANGE);
|
|
|
|
|
I think that subclassing the desires window could resolve the problem.
|
|
|
|
|
What is the logical flow of the program? More specifically, how many functions (did you use) are there and which do what? For instance: In main, such and such is called which does this, then the program returns to main where insert function is called etc... If its not too much trouble id greatly appreciate it.
|
|
|
|
|
This is a "how long is a piece of string" question.
The answer will heavily depend on the writer. Some people break pathetically small functions out - other people do their own stack and process things in a loop rather than use recursive functions.
So, the question is...
When you've finished it - then count them. Or ask your teacher what they had planned.
Iain.
|
|
|
|
|
I want to write server / Client Mfc App that works over internet
what class or classes should I use?
|
|
|
|
|
javad_2005 wrote: what class or classes should I use?
For which part?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I'd like to do an overlord of operator ++ and -- for my class with templates, like this:
template<typename T> CValueHandler& operator ++ ();
But the thing is, that while it compiles fine, I can't call that overloaded operator.
SomeClass myClass;<br />
myClass++;
Compiler simply complains it can't find a suitable overload.
So, my question is, is it possible to overload ++/-- and use templates too? I can't seem to find a good place to fit in a template type either:
SomeClass myClass;<br />
myClass<UINT64>++;
Doesn't work either.
Using Visual Studio 2005.
|
|
|
|
|
Yes, you can overload operators in templates. Take a look into the template of Simon Hughes into the articles (keywords: Smart list). He overloaded operator =, +=, [], and I added the operator == for the lists. So it should be no problem to overload the ++
One thing that I had time ago was...
I was using the ++ and the program was not running ok. I decided to try += 1, and still failed. The i used var = var + 1; and worked ok.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
I am drawing a screen which requires refrehing,so Invalidate() function is called continously.Now I want to start a timer when screen is drawn first time.In the timer i want to call another function which draws another screen after some time.How this could be done?
I have tried to start timer but it starts only after when i Maximize 0r minimize a screen.
Regards,
priyank
|
|
|
|
|
How to start timer on screen which is drawn continously?
priyank
|
|
|
|
|
pri_skit wrote: I want to start a timer when screen is drawn first time
UINT_PTR m_TimerID;
...
m_TimerID = 0;
...
void OnPaint()
{
...do some painting...
if (0 == m_TimerID)
{
m_TimerID = SetTimer(...);
}
}
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
|
Dear All
I want to have an array of one class.
do you have any article which shows me how to write such program.
Regards
|
|
|
|
|
SomeClass myClass[1000];<br />
SomeClass* pMyClass = new SomeClass[2000];
Is that what you're asking for?
|
|
|
|
|
I try to help you
if you define a class
class yourclass{
...
}
YOU CAN DO LIKE THIS
1:
vector <yourclass> vec;
-- modified at 13:02 Saturday 20th October, 2007
|
|
|
|
|
I'm having trouble with visual studio C++ (orcus)
I'm trying to make my program prompt to Close when
an event is fired.
currently I just have:
Close();
Which works perfectly fine except It does not prompt the user if they really want to close the application or not
I have tried
result= MessageBox::Show("Are you sure you want to exit?","Exit",MessageBoxButtons::YesNo,MessageBoxIcon::Question);
if (result==DialogResult::Yes)
{ Close(); }
but It gives me a Compile error, Saying Result, and Yes
are undefined. Please Someone with C++ knowlege, Help me.
|
|
|
|
|
it says exactly:
'Yes' : undeclared identifier
|
|
|
|
|
James245 wrote: DialogResult
"result" has no defined type. It should be
DialogResult result = MessageBox::Show(...);
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Managed code on this forum;P
|
|
|
|
|
Heh. It was easier to reply than to explain
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
In the future, please post managed C++ questions on the
(Managed) C++/CLI Board[^]
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi All,
I want little much information about the screen streaming.
Let me explain that what I want. I want to create frames from the screen in which my screen data screen pixel format,colors)are stored.So, How can I do that VC++ MFC.
I want to make frames continuesly as my screen (desktop) is changed.And I want to compress them and send them on socket.
So, plz help if anyone knows it.
Thanks In Advance.
Ashish Bhatt
|
|
|
|
|
|
Ok Thank u Hiru.
I will see this Link.
Ashish Bhatt
|
|
|
|
|
Dear all
in visual C++ 6 I want to create an array of class objects like this :
declaration in header file :
CStateMachine *state[NumberOfChannels];
in constructor :
for (int i=0; i < NumberOfChannels ; i++)
{
states[i] = new CStateMachine(this);
}
in destructor :
for (int i=0; i < NumberOfChannels ; i++)
{
delete states[i] ;
}
But when I want to delete the file I get the following error
DAMAGE : after normal block (#210) at 0x13243214
Press any key to debug the application
Abort, retry, Ignore.
May you please help me to find the reason of this problem.
Regards
|
|
|
|