Thank Mr Pelle
I added your changes and it WORKS!
static void Wnd01_OnCreate(HWND __hWnd)
{
volatile alignas(HANDLE) LVCOLUMNA _Lvc ;
alignas(HANDLE) WORKDATAS _Work ;
alignas(HANDLE) LPSTR _lpszTmp ;
alignas(int) char _szTmp[1024] ;
hListView_w1 = CreateWindowExA(WS_EX_CLIENTEDGE,WC_LISTVIEW,"",
WS_CHILD|WS_VISIBLE|WS_VSCROLL|LVS_REPORT|LVS_SHOWSELALWAYS|LVS_SINGLESEL|LVS_SORTASCENDING,
0,0,0,0,__hWnd,NULL,hInstance,NULL) ;
ListView_SetExtendedListViewStyle(hListView_w1,LVS_EX_DOUBLEBUFFER|LVS_EX_FULLROWSELECT|LVS_EX_GRIDLINES) ;
SendMessage(hListView_w1,WM_SETFONT,(WPARAM) hMainFont,TRUE) ;
ZeroMemory((void *) &_Lvc,sizeof(LVCOLUMNA)) ;
_lpszTmp = _szTmp ;
_Lvc.mask = LVCF_WIDTH|LVCF_TEXT|LVCF_FMT ;
_Lvc.fmt = LVCFMT_CENTER ;
_Lvc.cx = 80 ;
_Lvc.pszText = "SPK-ID" ;
ListView_InsertColumn(hListView_w1,0,&_Lvc) ;
ListView_InsertColumn(hListView_w1,1,&_Lvc) ;
_Lvc.cx = 140 ;
_Lvc.pszText = _szTmp ;
Message_Get(24,_lpszTmp,sizeof(_szTmp)) ;
ListView_InsertColumn(hListView_w1,2,&_Lvc) ;
_Lvc.cx = 70 ;
_Lvc.pszText = "ACP" ;
ListView_InsertColumn(hListView_w1,3,&_Lvc) ;
_Lvc.cx = 60 ;
_Lvc.pszText = "OVE" ;
ListView_InsertColumn(hListView_w1,4,&_Lvc) ;
_Lvc.cx = 50 ;
Message_Get(25,_lpszTmp,sizeof(_szTmp)) ;
_Lvc.pszText = _szTmp ;
ListView_InsertColumn(hListView_w1,5,&_Lvc) ;
_Lvc.cx = 40 ;
_Lvc.pszText = "NEA" ;
ListView_InsertColumn(hListView_w1,6,&_Lvc) ;
_Lvc.pszText = "PHA" ;
ListView_InsertColumn(hListView_w1,7,&_Lvc) ;
// e, a, q, i, om, w, ma, ad, n, per, per_y, moid, class
// e = Eccentricity
// a = Semi-major axis (au)
// q =
// i = Inclination of orbit plane (DEG)
// om = Longitude of Ascending Node (DEG)
// w = Argument of Perihelion (DEG)
// ma = Mean anomaly (DEG)
// ad = Aphelion distance (au)
// n = Mean motion (DEG/DAY)
// per = Orbital period (DAYS)
// per_y = Orbital period (YRS)
// moid = Distance minimale d'intersection d'une orbite
// class = Classe d'orbite
_Lvc.fmt = LVCFMT_RIGHT ;
_Lvc.cx = 90 ;
_Lvc.pszText = "e" ;
ListView_InsertColumn(hListView_w1,8,&_Lvc) ;
_Lvc.pszText = "a" ;
_Lvc.cx = 135 ;
ListView_InsertColumn(hListView_w1,9,&_Lvc) ;
_Lvc.pszText = "q" ;
ListView_InsertColumn(hListView_w1,10,&_Lvc) ;
_Lvc.pszText = "i" ;
_Lvc.cx = 90 ;
ListView_InsertColumn(hListView_w1,11,&_Lvc) ;
_Lvc.pszText = "om" ;
ListView_InsertColumn(hListView_w1,12,&_Lvc) ;
_Lvc.pszText = "w" ;
ListView_InsertColumn(hListView_w1,13,&_Lvc) ;
_Lvc.pszText = "ma" ;
ListView_InsertColumn(hListView_w1,14,&_Lvc) ;
_Lvc.pszText = "ad" ;
_Lvc.cx = 135 ;
ListView_InsertColumn(hListView_w1,15,&_Lvc) ;
_Lvc.pszText = "n" ;
_Lvc.cx = 90 ;
ListView_InsertColumn(hListView_w1,16,&_Lvc) ;
_Lvc.pszText = "per_d" ;
ListView_InsertColumn(hListView_w1,17,&_Lvc) ;
_Lvc.pszText = "per_y" ;
ListView_InsertColumn(hListView_w1,18,&_Lvc) ;
_Lvc.pszText = "MOID" ;
ListView_InsertColumn(hListView_w1,19,&_Lvc) ;
ListView_DeleteColumn(hListView_w1,0) ;
// On affiche aussi bien les astéroïdes que les comètes et les planètes
// Au départ on affiche les asteroïdes sans différienciation Observer, Vectors et Elements
// On vérifie simplement que les fichiers existent
memset(&_Work,0,sizeof(WORKDATAS)) ;
sqlite3_exec(hWorkDataBase,szEmptyWorkTable,0,0,NULL) ;
sqlite3_exec(hWorkDataBase,"BEGIN TRANSACTION",0,0,NULL) ;
Filtre_000(__hWnd,&_Work) ;
sqlite3_exec(hWorkDataBase,"END TRANSACTION",0,0,NULL) ;
sqlite3_exec(hWorkDataBase,"VACUUM",0,0,NULL) ;
return ;
}
Building Chloe.obj.
Building Chloe.res.
Building Filtres.obj.
Building Language.obj.
Building Log.obj.
Building Orbites.obj.
Building Utilities.obj.
Building Window-01.obj.
Building Window-02.obj.
Building Window-03.obj.
Building Window-04.obj.
Building Window-05.obj.
Building Chloe.exe.
POLINK: warning: Realigned section '.idata$5' in object 'sqlite3.lib(sqlite3.dll)' (from 4 to 8 byte(s)).
POLINK: warning: Realigned section '.idata$4' in object 'sqlite3.lib(sqlite3.dll)' (from 4 to 8 byte(s)).
POLINK: warning: Realigned section '.idata$2' in object 'libgfl.lib(libgfl340.dll)' (from 4 to 1 byte(s)).
Done.