Click here to Skip to main content
15,885,757 members
Home / Discussions / Mobile
   

Mobile

 
GeneralCreateToolhelp32Snapshot is unresolved Pin
GDavy8-Dec-03 22:20
GDavy8-Dec-03 22:20 
GeneralRe: CreateToolhelp32Snapshot is unresolved Pin
GDavy8-Dec-03 22:33
GDavy8-Dec-03 22:33 
Generalprocess memory Pin
GDavy8-Dec-03 21:05
GDavy8-Dec-03 21:05 
GeneralCE Software Protect Pin
Mesut Gencer8-Dec-03 3:55
Mesut Gencer8-Dec-03 3:55 
GeneralRe: CE Software Protect Pin
Daniel Strigl14-Dec-03 9:46
Daniel Strigl14-Dec-03 9:46 
General<b>TreeView Control using Win API</b> Pin
7-Dec-03 22:25
suss7-Dec-03 22:25 
GeneralRe: TreeView Control using Win API Pin
João Paulo Figueira8-Dec-03 2:03
professionalJoão Paulo Figueira8-Dec-03 2:03 
GeneralRe: TreeView Control using Win API Pin
Member 5146728-Dec-03 5:34
Member 5146728-Dec-03 5:34 
thank you for your solution.. I have looked on your sample but I still have some problems. The issue is that my application is made using Windows CE Pocket PC 2003 Platform and it is not based on mfc. And if I try to use MFC classes( CTreeView ex or any class from Afxcmn.h library) the app throws me an exception because I belive it isn't supported. I found a solution:

HWND treeHwnd = CreateWindowEx (...);
TV_ITEM tvi;
TV_INSERTSTRUCT tvis;

HIMAGELIST himl;
HBITMAP hbmp

if( (himl = ImageList_Create(16, 20, ILC_COLORDDB ,1 ,CLR_NONE))==NULL)
{....}
hbmp = LoadBitmap(g_hInst, MAKEINTRESOURCE(IDB_CHECKBOX));

if((ImageList_AddMasked(himl, hbmp, RGB(0, 255, 0)))== -1){...}

DeleteObject (hbmp);

memset(&tvi, 0, sizeof(TV_ITEM));
memset(&tvis,0, sizeof(TV_INSERTSTRUCT));

tvi.mask = TVIF_CHILDREN| TVIF_TEXT | TVIF_IMAGE | TVIF_HANDLE|TVIF_STATE;
tvi.stateMask = TVIS_STATEIMAGEMASK;
//...
tvi.state = 1;
tvis.item = tvi;

TreeView_InsertItem(treeHwnd, &tvis );
TreeView_SetImageList(treeHwnd, himl, TVSIL_NORMAL);

my second problem is that when i try to do in the same way for having a second image near my checkbox bmp, this second one doesn't appear and I don't know what can be the problem.

Thank you again for the help given to me Smile | :)
Regards,

Ramona
GeneralRe: TreeView Control using Win API Pin
8-Dec-03 6:12
suss8-Dec-03 6:12 
GeneralRegional settings Pin
GDavy7-Dec-03 20:22
GDavy7-Dec-03 20:22 
GeneralRe: Regional settings Pin
GDavy8-Dec-03 20:58
GDavy8-Dec-03 20:58 
GeneralMore mobile emulators Pin
Ya3sam7-Dec-03 8:53
Ya3sam7-Dec-03 8:53 
GeneralPocket PC emulator Pin
BlackRider5-Dec-03 22:28
BlackRider5-Dec-03 22:28 
GeneralRe: Pocket PC emulator Pin
João Paulo Figueira6-Dec-03 1:08
professionalJoão Paulo Figueira6-Dec-03 1:08 
GeneralRe: Pocket PC emulator Pin
BlackRider6-Dec-03 3:15
BlackRider6-Dec-03 3:15 
GeneralRe: Pocket PC emulator Pin
João Paulo Figueira6-Dec-03 3:54
professionalJoão Paulo Figueira6-Dec-03 3:54 
GeneralRe: Pocket PC emulator Pin
BlackRider6-Dec-03 4:41
BlackRider6-Dec-03 4:41 
GeneralRe: Pocket PC emulator Pin
João Paulo Figueira6-Dec-03 4:52
professionalJoão Paulo Figueira6-Dec-03 4:52 
QuestionDo not show the shape ? Pin
thaivs111815-Dec-03 2:32
thaivs111815-Dec-03 2:32 
GeneralDebugging problem Pin
kimurafoong4-Dec-03 18:15
kimurafoong4-Dec-03 18:15 
GeneralHelp getting started! Pin
dmc19804-Dec-03 4:58
dmc19804-Dec-03 4:58 
GeneralRe: Help getting started! Pin
João Paulo Figueira4-Dec-03 11:01
professionalJoão Paulo Figueira4-Dec-03 11:01 
GeneralRe: Help getting started! Pin
dmc19805-Dec-03 4:34
dmc19805-Dec-03 4:34 
GeneralRe: Help getting started! Pin
João Paulo Figueira5-Dec-03 4:43
professionalJoão Paulo Figueira5-Dec-03 4:43 
Generalmemory fragmentation Pin
GDavy3-Dec-03 23:05
GDavy3-Dec-03 23:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.