|
What have you already done ? What's your first idea about the whole thing ? We will surely bring you on the right way if and only if YOU code and WE correct what you have already done.
~RaGE();
|
|
|
|
|
I need to virus scan a file before uploading it, just like Hotmail or Yahoo does it. How do I go about doing it? Any help would be appreciated.
Thanks
|
|
|
|
|
Get a virus scanner that exposes an API for programmatically controlling it, read docs for API, implement. Easy as that
|
|
|
|
|
Hallo!
For a TreeViewCtrl I need a drag & drop Function, Source or other, which reacts on displacing a folder....
Thank you for help...
|
|
|
|
|
Hi!
I'm working on a CFormView derived class, and i had the need of creating a ownerdraw button.
In the .h file i wrote : CMyButton botao;
...and then, in the .cpp i created like this:
~
botao.Create("Back", WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON|BS_FLAT|BS_OWNERDRAW, CRect(10, m_iLastY+70, 150, m_iLastY+100), this, BTN);
The first time i call that form, no problem it works, but the next time i call it i get an debug assertation error!
In Debug i can see that the hwnd of botao is 0x00000000
and the next time i stop in the line in which i'm creating it i have a
value there.
How can i make botao's hwnd equal to 0x00000000 again?
Thank you
Rui
|
|
|
|
|
Ruca wrote:
In Debug i can see that the hwnd of botao is 0x00000000
and the next time i stop in the line in which i'm creating it i have a
value there.
Sure, because once you successfully create your button, it is assigned a handle, namely the hwnd .
Ruca wrote:
How can i make botao's hwnd equal to 0x00000000 again?
You'll have to destroy your button before recreating it. For that,it may be helpful to run botao.Detach() in such a way :
if (botao.m_hwnd!=NULL)
botao.Detach();
else
botao.Create("Back", WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON|BS_FLAT|BS_OWNERDRAW, CRect(10, m_iLastY+70, 150, m_iLastY+100), this, BTN);
Well, that's what i would try. BUT I'm not very qualified, so it can be that this is all wrong.
~RaGE();
|
|
|
|
|
Thank you very much Rage, i tried it, but even with .Deatch()
(i also tryed botao.m_hwnd==NULL) , i get an error when executing, and now i'sure the m_hWnd is 0x000000, is there any other variable i should worry about?.
Thank you
Rui
|
|
|
|
|
I have a toolbar derived from CToolBar consisting of several buttons. I created the toolbar using Insert->Resource->Toolbar but did not add any contents to the different buttons. I now want to add centered text to the different buffers (whose size and position changes when the main window changes) in run-time. Of course I have tried CToolBar.SetButtonText() but it just doesn't work. I have seen other people do the same thing, but my application doesn't work.... What am I doing wrong?
Christoffer Andreas Andersen
"I'm just here to regulate the funkyness!" - Gandolfini
|
|
|
|
|
Hi, how can I avoid that a scrollbar inside my listbox vanishes?
I created a listbox with styles LBS_DISABLENOSCROLL | WS_VSCROLL . But when I resize the listbox so small that the scrollbar is the only visible part, the scrollbar disappears. Thanks for help.
|
|
|
|
|
How can I extract an Icon in C++ from an .exe file?
Do anyone have an Samplecode?
|
|
|
|
|
::ExtractIcon()
Read MSDN Library for more information. It's the best way to learn if you look up things by your own!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
|
I have some ideas of developing applications on Microsoft Excel, but most materials I could found were base on VB. Where can I begin with?
|
|
|
|
|
|
I wrote some math routines in C and compiled it to a dll file that can be called from Excel either with the CALL function or a VBA wrapper. I can post an example later if that is what you are looking for.
If you are looking to manipulate Excel formating and such, then I can't help.
I do have a book called MS Excel Developers Guide, somewhere? It explains some of that stuff.
|
|
|
|
|
hi there
i need some ideas about putting treeview controls inside listview
more specific i need to have a treeview in each listview item or subitem
i found an article about treelistview but this implement subitems facility for treeview item and is not usefull for me
thanks in advance for your help
|
|
|
|
|
Anyone knows how to write to the parallel port in c++ ?
I am using windows 2000/NT
Thanks
Shay Harel
|
|
|
|
|
look in MSDN for CreateFile API function
|
|
|
|
|
In Codeproject are some articles about (Serial Port) it.
You MUST use overlapped I/O -> it is not quick hack and not easy. Prepare yourself for work.
Try this @ home. (B&B)
|
|
|
|
|
Hello, how can I create a transparent Icon (not white...) or Bitmap to place on a CButton object.
I use the .net IDE!
|
|
|
|
|
I used CButtonST class here from CP.
|
|
|
|
|
The mouse cursor doesn't change over a window I created!
(If I put the cursor over the edge, so I see the "size" cursor, it stays that way when I move it over the window)
Window creation:
if (!m_wndTileset.CreateEx(WS_EX_PALETTEWINDOW | WS_EX_TOOLWINDOW | WS_EX_TOPMOST,
AfxRegisterWndClass(CS_VREDRAW | CS_HREDRAW, theApp.LoadCursor(IDC_ARROW)),
"Tileset", WS_SIZEBOX | WS_SYSMENU, CRect(), this, 0))
Any ideas? Do I have to do soemthing special to make it change?
|
|
|
|
|
Override OnSetCursor (MFC) or handle WM_SETCURSOR (Win32) ?
~RaGE();
|
|
|
|
|
From MSDN:
The default implementation sets the cursor to an arrow if it is not in the client area or to the registered-class cursor if it is.
So it should already work???
|
|
|
|
|
Hi,
I've created a project with the ATL Com Appwizard and inserted a new ATL object, derived from ComboBox. It uses an internal variable m_ctlComboBox which is of type CContainedWindow . I want to be able to invoke methods like InsertString and the likes from VB without programming stubs for them, since the implementation is already done by ComboBox itself. How can I publish the internally used control so VB sees these methods and properties?
I've now replaced the type of m_ctlComboBox from CContainedWindow to CContainedWindowT<CComboBoxT<CWindow> > deriving from a template defined in ATLControls.h. I just thought it might help, but no such luck....
|
|
|
|