|
Erik Juhl wrote:
Boy are you in for some fun times
Yes, I've noticed already
Thanks for the hints.
Anyway, I've started a integration library, it might develop to a article on CodeProject. Looks promising.
Holy Sh*t! I'm speechless. (hey, that's a first) Marc Clifton, The Lounge
|
|
|
|
|
Hi,
I have an MFC app and I want to create some Controls on the Fly!
The controls are member variables of an custom control class and
will be created in the OnPaint function of this customcontrol Class.
I have to apply a ID to them when creating(by using the Create function (...,UINT nID))
How do I create such an ID dynamically?
Thanks, Ingmar
|
|
|
|
|
ingi wrote:
OnPaint
You wanted to say OnCreate() ?
AFAIK, the controls created by your control are your controls childs, and they are not 'visible' to the outside (programatically spoken, they are, of course, visible on the screen) so you can assign them arbitrary numbers.
My opinions may have changed, but not the fact that I am right.
|
|
|
|
|
ingi wrote:
I have to apply a ID to them when creating(by using the Create function (...,UINT nID))
How do I create such an ID dynamically?
If you don't use the control ID (e.g. when you use HWND or CWnd* to access your childs), you dont need one, so the IDs can all be the same (meaningless) number.
Otherwise here are some IDs: 1 2 3 4 5 ....more?
|
|
|
|
|
I am adding bitmaptoolbar.I was added sucessfully in one row.I want add tools in the second row.How to write?
|
|
|
|
|
Hello
Is there any good libraries for XML out there?
Im programming in unmanaged C++ using Visual Studio 7 (the xml classes in .net is only for managed c++, or am I wrong?)
I do not use MFC.
|
|
|
|
|
Use XML DOM.
Search MSDN Library and you'll find good help!
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++!
|
|
|
|
|
Is that COM components? Or am I wong. I want to use libraries.
|
|
|
|
|
Verifier wrote:
I want to use libraries
Write your own library!
The best way to learn XML in C++!
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++!
|
|
|
|
|
If I wanted to do that, i wouldnt have asked, right?
|
|
|
|
|
Try those good article on CP (much easier to use than DOM)
Markup[^]
MarkupArchive[^]
Jonathan de Halleux.
|
|
|
|
|
|
|
How to get an IP address of a local computer?
Please send me any example/code/API.
Reply me soon
|
|
|
|
|
127.0.0.1
Best regards,
Alexandru Savescu
P.S. Interested in art? Visit this!
|
|
|
|
|
|
Is there a Shell or API function that I can specify a FullPath to a file, and have the shell open explorer and highlight the file.
Like when you perform a Find Target on a shortcut?
|
|
|
|
|
You can check out this article to get a code that will do it...
http://www.codeproject.com/shell/FoundInFolder.asp
Hope this helps.
|
|
|
|
|
thanks.
It certainly does... In fact even though the author said it only works in Win98, it still works properly in Win2k
|
|
|
|
|
there is new XP function SHOpenFolderAndSelectItems
|
|
|
|
|
Hi everybody and please excuse my poor English,
I would like to write a directshow filter that operate directly on Compressed video streams by changing some parameters (contrast or light), is it possible without uncompressing the video file ?
Where can i find some documentation or a sample source code ?
Thank you.
|
|
|
|
|
Hi,
I would like to create a CTreeCtrl which has a CToolBar embedded. The result should be a new control. Is this possible and if so how do I achieve this?
I presume it is possible to change the CTreeCtrl because the windows explorer does so too. It creates a grey bar with the caption "Folders" and a close button.
Any suggestions?
Thanks,
Henk
|
|
|
|
|
Woody Green wrote:
I presume it is possible to change the CTreeCtrl
Sure, this is possible. You can customize your CTreeCtrl just by creating a class derived from it. if you want to create a new ctrl, derive it from the CWnd. Look at Riazi's answer to a similar question a few posts earlier.
~RaGE();
|
|
|
|
|
Draw a DialogBox with TreeCtrl and without border in your ressource.Add a class (CTreeExplorerBar in example)
in Mainframe.h
protected:<br />
CTreeExplorerBar m_wndTreeBar;<br />
in Mainframe.cpp
if (!m_wndTreeBar.Create(this, IDD_TREE, <br />
CBRS_LEFT | CBRS_TOOLTIPS | CBRS_FLYBY, IDD_TREE))<br />
{<br />
TRACE0("Impossible de créer la Dialog Bar\n");<br />
return -1;
}<br />
m_wndTreeBar.EnableDocking(CBRS_ALIGN_LEFT | CBRS_ALIGN_RIGHT);<br />
EnableDocking(CBRS_ALIGN_LEFT | CBRS_ALIGN_RIGHT);<br />
DockControlBar(&m_wndTreeBar);<br />
m_wndTreeBar.UpdateData(FALSE);
Hope this helps
|
|
|
|
|
I am writing a custom drawn list view (Report View mode), and think the CDDS_PREERASE and CDDS_POSTERASE messages might be useful, however, I can't get windows to send them.
I'm wondering if they are supported for list views as,
I can't find an example of their use,
Can't get them to work after returning the CDRF_NOTIFYPOSTERASE value,
And found an article in which the author admitted not being able to get them to work.
So does anyone know if they are supported?
If yes how?
|
|
|
|