PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Would I be correct to assume that... (CreateIcon Replacement

Ok, I was bussy porting when I came accross this on function which had, as far as I can see, no replacement in wince. Here is the code.
Code:
lpA=lpAND=(LPBYTE)HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,(16*16));
lpX=lpXOR=(LPBYTE)HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,(16*16));
eICON=CreateIcon(gApp.hInstance,16,16,1,1,lpAND,lpXOR);


As far as I can tell, this simply creates a 16x16 blank icon. So, if my assumption is correct, I could simply create this icon right now, and them use the LoadIcon funtion to load this blank icon. Would this be correct?
Just fill an ICONINFO struct and use CreateIconIndirect.

Dan East