Pelles C forum

C language => User contributions => Topic started by: DMac on November 13, 2013, 01:03:07 AM

Title: Simple Grid - A Win32 message based grid control
Post by: DMac on November 13, 2013, 01:03:07 AM
Pelles C forum,

I have published a message based grid control that improves upon the BABYGRID concept.

Here are some screen shots.

(http://www.codeproject.com/KB/grid/681771/Figure1.png)
Figure 1 Original Baby Grid Demo

(http://www.codeproject.com/KB/grid/681771/Figure2.png)
Figure2 New Columns

It can be found with accompanying article (a usage referance) at the code project.

Simple Grid - A Win32 message based grid control (http://www.codeproject.com/Articles/681771/Simple-Grid-A-Win32-message-based-grid-control)

Regards,
DMac
Title: Re: Simple Grid - A Win32 message based grid control
Post by: TimoVJL on November 14, 2013, 08:30:19 AM
Nice, header style options would be nice too. (EDGE_ETCHED, EDGE_RAISED, ..)
Title: Re: Simple Grid - A Win32 message based grid control
Post by: DMac on November 15, 2013, 08:47:32 PM
Just posted a bug fix to the Simple Grid.

Regards,
DMac
Title: Re: Simple Grid - A Win32 message based grid control
Post by: DMac on November 16, 2013, 07:11:27 PM
Hello All,

I fixed some issues that could potentially have caused problems when compiled to X64.  New update now available on Code Project.
 
Regards,
DMAC
Title: Re: Simple Grid - A Win32 message based grid control
Post by: Jean-Pierre Leroy on October 31, 2016, 07:34:04 PM
Hello David,

I tried to recompile your demo with the external DLL SimpleGrid.DLL that you provide to me (in April 2016) with this link :
http://www.codeproject.com/script/Membership/Uploads/1704161/SimpleGridDLL.zip

I didn't get exactly the same result than with your demo.exe as you can see on the screenshots below:
- On the left side, your original demo.
- On the right side, your demo running with the external DLL

I'm probably missing something, but I don't know what.

Thanks for your help.
Jean-Pierre
Title: Re: Simple Grid - A Win32 message based grid control
Post by: Jean-Pierre Leroy on October 31, 2016, 07:37:00 PM
David,

Here is your modified demo project in order to use the external DLL SimpleGrid.dll

What I have done :
1. Removing SimpleGrid.c from the projetc
2. Adding SimpleGrid.dll and SimpleGrid.lib in the project folder
3. Adding this line in main.c
Code: [Select]
#pragma comment(lib, "SimpleGrid.lib")

Regards,
Jean-Pierre
Title: Re: Simple Grid - A Win32 message based grid control
Post by: Jean-Pierre Leroy on November 01, 2016, 08:12:35 AM
Problem fixed. The SimpleGrid.dll was not compile with the #define Unicode

Code: [Select]
#define UNICODE
#define _UNICODE

Now it works perfectly.
Below the updated SimpleGrid_demoWithDLL project.