/**//* MapInfo Products Knowledge Base Product: MapX Version: 5.x Platform: 98/NT 4.0 SP6/2000/XP Category: VC++ Code Samples Summary: Using Custom Bitmap Symbols in C++. Question: What are the methods pertaining to Custom Bitmap Symbols in VC++? Answer: Try this code: */ //Declare a style variable CMapXStyle styl; //Create the style object styl.CreateDispatch (styl.GetClsid()); //set all the Style Object properties styl.SetSymbolType( miSymbolTypeBitmap); styl.SetSymbolBitmapSize(32); //Using a sample bitmap in C:Program FilesMapInfo MapX 5.0CUSTSYMB styl.SetSymbolBitmapName(LPCSTR("CAR1-32.BMP")); //This make the white in the bitmap transparent styl.SetSymbolBitmapTransparent(true); // Setting these will make the nonwhite areas green // styl.SetSymbolBitmapColor( miColorGreen); // styl.SetSymbolBitmapOverrideColor(true);