[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.0

Problems with ListView control

Asked by vosk in Windows Programming

Tags: initcommoncontrols, reference

Hello, I have a problem on creating a ListView in C language and Win32 API. Recently I have done a simple aplication that do not display a main window, only the systray icon, and with a certain wParam on WM_COMMAND it pops a 'DIALOG FIXED' with a list view defined in a resource file like this:

CONTROL    "List2",IDC_LIST,"SysListView32",LVS_REPORT | LVS_EDITLABELS | WS_BORDER | WS_TABSTOP | LVS_SINGLESEL,10,10,100,100

It works well. But the problem is when I try to use the same thing with a windowed application. When I try to popup the DIALOG FIXED (that contains the SysListView32 control) it is not displayed, and there's no compiler/linker errors, and if I set that control line as 'rem' comment then all works well (but the listview is still not displayed).
I have read that the problem might be that I haven't used the 'InitCommonControls()' or 'InitCommonControlsEx()' to load the dll that control those common controls. When I compile the code with 'InitCommonControls()' on the WinMain it gives the error "[Linker error] undefined reference to `InitCommonControls@0'", and when I compile it with 'IniitCommonControlsEx()' it gives the error "[Linker error] undefined reference to `InitCommonControlsEx'".

The strange thing is that I never used that function to create the listview in my other application without main window, and it is compiled without errors and works correctly.

What is that? What can I solve it?
I use Windows Me, the IDE Dev-C++ with the MinG compiler.

Thank's in advance.
jbosch(vosk)
[+][-]12/30/04 10:23 AM, ID: 12927686Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: Windows Programming
Tags: initcommoncontrols, reference
Sign Up Now!
Solution Provided By: PlanetCpp
Participating Experts: 1
Solution Grade: A
 
[+][-]12/31/04 11:03 AM, ID: 12933649Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/01/05 06:07 PM, ID: 12937577Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/02/05 02:59 AM, ID: 12938523Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/02/05 07:38 AM, ID: 12939391Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/03/05 04:20 AM, ID: 12942990Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/07/05 07:41 AM, ID: 12984247Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89