hi all,
i'm trying to draw circles on a picture box as follows:
Graphics dc = this.CreateGraphics();
Pen redPen = new Pen(Color.Red, 10);
dc.DrawEllipse(redPen,100,100,50,50);
of course the ellipse (in this case circle) is under the picture. how can i fix this ?
thanx!
Hi all,...
i'm building a dialog app, and now i want to write a CArray to a file and load it from one.
The problem is that the CArray is initialized in the main class (CKassaDlg) and it contains object from another class i made myself (CProducten). I can't figure out in wich one of the two...
hi,
i'm writing a dialog based app. I use some keyboard shortcuts with PreTranslateMessage, this all works with (euh) "keys that start with VK_" like the function keys, escape, delete, ... but not with normal letters. I'd like to redirect to a function when the dollar key is pressed...
hi, i'm writing a dialog based app. i use some keyboard shortcuts with PreTranslateMessage, this all works with (euh) "keys that start with VK_" like the function keys, escape, delete, ... but not with normal letters. I'd like to redirect to a function when the dollar key is pressed...
hi, i'm writing a dialog based app. i use some keyboard shortcuts with PreTranslateMessage, this all works with (euh) "keys that start with VK_" like the function keys, escape, delete, ... but not with normal letters. I'd like to redirect to a function when the dollar key is pressed...
i'm not sure if this wil help but, i'm working in a dialog based app now and allso work with accell keys, but as follows:
BOOL CKassaDlg::PreTranslateMessage(MSG* pMsg)
{
switch(pMsg->message)
{ case WM_KEYDOWN: switch(pMsg->wParam)
{ case VK_ESCAPE: OnButtonsluiten();
return TRUE...
hi all,
i would like to check if any string in a listbox is selected (in an if statement) before i perform any operation to it, if no string is selected, i just want to put up an AfxMessageBox!
thx in advance !
josphin.
ahum,
i deleted the file, recompiled the project, same prob when i press ctrl+w. the prob at first occured with two classes, now only with one (i really don't get it, as usual ;-) )here is the declaration of that class:
http://users.skynet.be/josphin/naamloos.jpg
thanx in advance !
jos.
hi peepz,
i'm working on a prog that needs urgent finishing. When i compile everthing seems to be just fine, but when i start the class wizzard (ctrl+w) i can read the following message: http://users.skynet.be/josphin/naamloos.jpg.
can someone show me the light please ???
greets en props, jos.
i don't think it's right either.
i think i must create some public member functions to acces the CArray. But that ain't easy at all, i guess. I don't get the whole pointer and reference stuff, and isn't that what you need when working with arrays ???
Thanks for your help you guys !
I declare the CArray variable array as follows in the KassaDlg.h file:
class CKassaDlg : public CDialog
{
// Construction
public:
CKassaDlg(CWnd* pParent = NULL); // standard constructor
CArray <CProducten, CProducten&> array; //declaration of array variable
// Dialog Data...
Hi,
I declare the CArray variable array as follows in the KassaDlg.h file:
class CKassaDlg : public CDialog
{
// Construction
public:
CKassaDlg(CWnd* pParent = NULL); // standard constructor
CArray <CProducten, CProducten&> array; //declaration of array variable
// Dialog Data...
Another fairly easy problem for you experts out there, i guess. In the MSDN library stands an example for writing an array to files, now i want to write/read a CArray to/from a file. How, please ???
THX!
hi,
i want to declare a CArray in my prog. The array is meant to contain elements of the type CProducten (a class that i made myself) Am i doing this correct :
CArray <CProducten, CProducten> array[100];
???
Thx!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.