You could try puting a CRect around the box and use;
CRect area(0,0,10,10) // where the coordinates are around
the area you want the mouse to be clicked in
area.PtInRect(pos)// where pos is...
Type: Posts; User: digital dropout
You could try puting a CRect around the box and use;
CRect area(0,0,10,10) // where the coordinates are around
the area you want the mouse to be clicked in
area.PtInRect(pos)// where pos is...
You could just try overridding the OnPrintScreen() or OnPreparePrinting() function in the Message_Map(), that is if you are using MFC, and put your code inside one of these functions.
Are you sure you have your database connected with ODBC?
Basically, anything you put on the freestack with the new operator is permanent until you delete it. This gives you the option of controling your own memory allocation. Concerning the dialog box...
you can use this:
char *_ecvt( double value, int count, int *dec, int *sign );
example;
int decimal, sign;
int precision;
if (mpg < 10000) precision = 5;
if (mpg < 1000) precision = 4;
if...
Well actually it speeds up data transfer;
Cat fluffy; // An object.
fluffy = new Cat; //actually creating the object on the heap
and would be referenced by;
Cat* tinkles = &fluffy;
with...
Christine here are quick examples:
//modeless dialog box;
mdlg = new CMajorDialogbox;//create a new CMajorDialogbox class on the heap
mdlg->Create(IDD_MAJOR);...
Perhaps you should move:
CToolBar mytoolbar;
into the header file. Seems to me when initdialog goes out of scope your "CToolBar mytoolbar" would too.
Also if you are using the Resource...