~vcs-imports/bluemapia-qt/wince-import

« back to all changes in this revision

Viewing changes to BlueMapia/SRC/WIN32/StaticListPlacemarksDlg.cpp

  • Committer: m.ferrero
  • Date: 2009-06-05 18:42:07 UTC
  • Revision ID: svn-v4:29a700e2-f876-0d4b-afa1-f914c6d0a9c9:BluemapiaWinClient:199
Modificato per aggiungere al nome l'indicazione Wikipedia: dato che l'utilizzo della bitmap wikipedia è molto complicato 

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
#include "resource.h"
34
34
#include "kml.h"
35
35
#include "ShowMarker.h"
 
36
#include "GeoJsonApi.h"
36
37
#include "viewchart.h"
37
38
#include "DlgsRes.h"
38
39
#include "AmeUtil.h"
68
69
extern MarkerList customPlacemarksList; // Main Placemarks list. The dialog will display this list.
69
70
extern int screenHeight, screenWidth;
70
71
 
 
72
extern idName_t ServiceList[];
 
73
 
71
74
#ifdef _WIN32_WCE
72
75
void ShowTaskbarFromDialogFunction(HWND hWnd);
73
76
HWND CreateRpCommandBarForDialog(HINSTANCE hInst, HWND hwnd, int IDMenu);
131
134
{
132
135
        wchar_t szValue[MAX_BUFFER_LEN];
133
136
        int i;
134
 
        char strTmp[256]="";
135
 
        char *strTmp2;
 
137
        char strTmp[MAX_BUFFER_LEN]="";
136
138
        char strTmp3[256]="";
137
139
        HWND hCtrlWnd;
138
140
        RECT rec;
139
 
        LRESULT lResult;
140
141
        LVCOLUMN LvCol; // Make Coluom struct for ListView
141
142
        LVITEM LvItem;  // ListView Item struct
142
 
        LV_DISPINFO lvd;
143
 
        int colTextW, lvW,lvH, index;
 
143
        int colTextW, lvW,lvH;
144
144
 
145
145
        Marker *p;      
146
146
 
219
219
                        {
220
220
                                LvItem.iItem=i;          // choose item  
221
221
                                LvItem.iSubItem=0;       // Put in first coluom
222
 
                                ctow(szValue,p->name);
 
222
                                if ( p->markerDirType == GEOWEBCONTENT_LAYER )
 
223
                                {
 
224
                                        if ( p->IdWebCategory != ID_GEOWEB_SEARCH_RESULT )
 
225
                                                sprintf( strTmp, "%s: %s", ServiceList[p->IdWebCategory].name, p->name );
 
226
                                        else
 
227
                                                strcpy( strTmp, p->name );
 
228
 
 
229
                                        ctow(szValue,strTmp);
 
230
                                }
 
231
                                else
 
232
                                        ctow(szValue,p->name);
223
233
                                LvItem.pszText=szValue;
224
234
                                LvItem.iImage=SetMarkerIcon(p);
225
235