BitmapControl::registerClass(); ZoomControl::registerClass(); ColorControl::registerClass();
MapView::MapView()  : ResizeDlg(){  BitmapControl::registerClass();  ZoomControl::registerClass();  ColorControl::registerClass();  autoUpdate = false;    memset(&bmpInfo.bmiHeader, 0, sizeof(bmpInfo.bmiHeader));    bmpInfo.bmiHeader.biSize = sizeof(bmpInfo.bmiHeader);  bmpInfo.bmiHeader.biWidth = 1024;  bmpInfo.bmiHeader.biHeight = -1024;  bmpInfo.bmiHeader.biPlanes = 1;  bmpInfo.bmiHeader.biBitCount = 24;  bmpInfo.bmiHeader.biCompression = BI_RGB;  data = (u8 *)calloc(1, 3 * 1024 * 1024);  mapView.setData(data);  mapView.setBmpInfo(&bmpInfo);    control = BG0CNT;  bg = 0;  frame = 0;}