|
Hi Masters!
I've a window without titlebar; So it doesn't have any text on its taskbar button. Can i set a title to it?
|
|
|
|
|
Usef Marzbani wrote: Can i set a title to it?
Yes, Call SetWindowText( _T( "New title" ));
For e.g. If I have a dialog without a caption bar I would call SetWindowText in OnInitDialog to avoid a blank button in the windows taskbar.
Nibu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
Yes you can do.
-@SuDhIrKuMaR@-
|
|
|
|
|
Has anyone here created a Visual Studio project to build the LZMA SDK as a DLL (or lib; I can convert it). It would also be nice to have a project to build the command line utility.
(I like 7-zip, but my goodness, his source is a pain to deal with.)
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
I recently built 7-zip myself since I wanted to change the icons and it compiled smoothly with VS 2008. What version of VS are you using and what problem do you have building it? There is a project file for standalone command line utility for LZMA at CPP\7Zip\Compress\Lzma_Alone, I just tried it compiles fine. For building it as a librrary I guess there are files for it in CPP\7Zip\Compress\Lzma, did you tried to create a new empty win32 lib project and adding all the files in it?
Saurabh
|
|
|
|
|
I'm building it in VS6. Apparently I need the 2003 PSDK, which I downloaded before heading home tonight. I'll probably build it for VS 2005 as well (long story, don't ask.) I was just curious if someone had created a .dsw for it.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
I have a Windows listview control with 15 columns. Is there a way for me to highlight a specific column in the listview? Can I also move the highlight by scrolling left and right on the listview? Thanks.
|
|
|
|
|
kani98 wrote: Is there a way for me to highlight a specific column in the listview?
Yes. Look at OwnerDraw[^]
led mike
|
|
|
|
|
|
a Dialog-Based project
i begin a thread in OnInitialDialog()
m_list is a variable related with a CListCtrl widget
when compiling
it shows that
error C2065: 'USES_CONVERSION' : undeclared identifier
error C2065: 'ReadDirectoryChangesW' : undeclared identifier
error C2065: 'm_list' : undeclared identifier
error C2227: left of '->InsertItem' must point to class/struct/union
error C2227: left of '->GetItemCount' must point to class/struct/union
error C2227: left of '->SetItemText' must point to class/struct/union
How can i deal with it ??
And why ??
thanks
|
|
|
|
|
york528 wrote: error C2065: 'USES_CONVERSION' : undeclared identifier
See here.
york528 wrote: error C2065: 'ReadDirectoryChangesW' : undeclared identifier
See here.
york528 wrote: error C2065: 'm_list' : undeclared identifier
See here.
What does any of what you posted have to do with threads?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
there's only one problem
error C2065: 'ReadDirectoryChangesW' : undeclared identifier
after i do the follow
Header Declared in WinBase.h; include Windows.h.
it's still have the problem
|
|
|
|
|
thank you
i forgot to #define _WIN32_WINNT 0x400
the problem solved
|
|
|
|
|
Can you show your code and it seems you forgot to include header file or your program?
|
|
|
|
|
the Thread function is global function
CCriticalSection m_Sec; is global too
now after include atlbase.h
only error C2065: 'ReadDirectoryChangesW' : undeclared identifier
|
|
|
|
|
i did nothing
the code dosen't changed
but the m_list problem solved
Amazing
|
|
|
|
|
problem solved with #define _WIN32_WINNT 0x400
thank you for help me so much time and give me a lot usful advises
|
|
|
|
|
It seems your problem solved and I arrived late,but I glad it solved.
|
|
|
|
|
Basix.
1.include atlbase.h
2.You cannot access member variables from a static thread function. Pass the this(Dlg) pointer into the thread param and access it inside the function or do it in one of the 100 ways.
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus
Best wishes to Rexx[^]
|
|
|
|
|
after include atlbase.h
only error C2065: 'ReadDirectoryChangesW' : undeclared identifier
do i miss other head file??
|
|
|
|
|
define this :
#define _WIN32_WINNT 0x400
in stdafx.h.
What OS are you using?
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus
Best wishes to Rexx[^]
|
|
|
|
|
windows XP
thank you so much
#define _WIN32_WINNT 0x400 what's that for
i am new and my English is not so good
|
|
|
|
|
Few APIs would be supported to specific OS. That's the OS version.
Windows NT 4.0 -> _WIN32_WINNT =0x0400.
The error is gone or not?
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus
Best wishes to Rexx[^]
|
|
|
|
|
it's already gone
thank you
|
|
|
|
|
Oh ok ok
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus
Best wishes to Rexx[^]
|
|
|
|