|
You'll find an interesting article on the subject, written by P.J. Plaugher, here:
http://www.baosys.com/work/cpp/html/17.04/plauger/plauger.htm
|
|
|
|
|
Hi,
I'm writing an MFC-application based on CRichEditDoc/View, where I need to embed files in the document (displayed as icons). Everything works just fine, except for one thing: I can't figure out how to embed an object with a custom icon (or rather, a MetaFilePict = Icon + Label), all I get is the ugly default (such as a Package icon for non-OLE objects).
I know how to properly create the custom metafilepict (it's been tested independently), but when I use COleClientItem's SetIconicMetafile() to assign it to the object, it doesn't work. This is _after_ I've called SetDrawAspect(DVASPECT_ICON), which default COleClientItem implementation resets the icon, but _before_ the view's InsertItem() method. What else do I need to do?
If anyone could give me some hints on what I need to do, I'd really appreciate it!
|
|
|
|
|
How can I add my own button to the title list, or what it is called in English.
A good example is ICQ: The window is a child but the ICQ window has a minimize button too!
So, how to add a button in my window that only has a close button (the 'X' button)!!!!??????????????
------------------------------
©0d3 ©®4©k3® - That's me!
------------------------------
|
|
|
|
|
Hello everybody!!!
Please help me with CRectTracker.
I have the Modal Dialog, CRect m_rect and CRectTracker m_tracker variables.
I'm need, that the m_tracker movies inside m_rect ONLY.
As it to make!
Best regards,
Eugene Pustovoyt
Sonork ID 100.10002:Yaumen
|
|
|
|
|
When yo make the call to start the CRectTracker object tracking, make a call to ClipCursor(Rect) to limit the area the mouse can move in. Once complete call ClipCursor(NULL)
Roger Allen
Sonork 100.10016
|
|
|
|
|
Thank, seems has helped
Best regards,
Eugene Pustovoyt
Sonork ID 100.10002:Yaumen
|
|
|
|
|
Hi Im not sure exactly what you want. You have your m_rect now do you mean that you want the resize bar inside the rect or that you only want to be able to move the rect to shrink (not enlarge).
If it is the first case use
m_tracker = new CRectTracker(rect,CRectTracker::resizeInside );
Here is how I used it to initilise my CRectTracker to move objects in my dialogs (warning untested code)
CDC* pDC = GetDC();
if (m_tracker)
{
delete m_tracker;
m_tracker = NULL;
}
LPRECT rect = new RECT;
CWnd* wnd = (CWnd*)(GetDlgItem(IDC_EDIT1));
wnd->GetWindowRect(rect) ;
ScreenToClient(rect) ;
m_tracker = new CRectTracker(rect,CRectTracker::dottedLine | CRectTracker::resizeOutside | CRectTracker::hatchedBorder );
m_tracker->Draw(pDC);
delete rect;
rect = NULL;
---
|
|
|
|
|
You move the control inside all dialogue, and it is necessary for me to move the control only in what or parts of the dialogue limited m_rect .
All the same thank, for attention to my problem. If there will be ideas I with pleasure shall listen them!
Best regards,
Eugene Pustovoyt
Sonork ID 100.10002:Yaumen
|
|
|
|
|
Ive seen posts on the web saying that there are programs that can get the C/C++ code from an exe. Is this actually possible? It must be because what goes one way must be able to go back again.
If this is true could it mean the end of 'payed for' software?
.NET or not .NET? MFC is the question......
|
|
|
|
|
If it were true I'd make my own Windows XP and sell it for $100 per copy.
Jon Sagara
What about ?
|
|
|
|
|
Yes, these programs do exist. However, the quality isn't very good.
I have taken software and created an ASM file before and then figured out how the software worked. In some cases it was to make sure my software acted as people expected (i.e. SendKeys from a C++ program). In other cases it was to get a full understanding of how a routine worked (i.e. VariantChangeTypeEx: when we were switching to it from a C based variant systems.)
Now...
The legality of a lot of this is VERY VERY VERY questionable.
Decompilation
As far as these things being the end of 'paid for' software, not in a million years. If fact, this desire for the end of 'paid for' software is actually very counter productive to the software industry. The quickest way to kill innovation is to make it all free.
Tim Smith
Descartes Systems Sciences, Inc.
|
|
|
|
|
Hi
I was wondering if anyone out their know of a sevice pack fixing bugs in Microsoft's eMbedded Visual Tools 3.0. I had to reformat my drive to get it out the registry the last time I installed it. Now I need to use it rather desparately but am feeling a bit off about reinstalling it. Did anyone else have problems with debugging in this environment? Much appreciated
Love and dynamite comes in small packages
|
|
|
|
|
Well...
My colleague has been using it on Win 2000 Prof. without any problems. But she has been usin it for only about a week now. But so far, no problems
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
I use it on W2K Pro to debug applications (and drivers) on iPac.
The debugger stinks.
Let me rephrase that:
The EVC debugger really stinks!!!
The debugger is SLOW and locks up all the time, then I have to kill EVC.EXE and reset my iPac.
I am desperate for an update, but to my knowledge there is none.
Why o why are there 5 service packs for Visual C++ but none for this CRAP!
--------------------------------------------------
If my messages appear curt, I apologize.
I try to be brief to save your time as well as mine.
--------------------------------------------------
|
|
|
|
|
Been using for months with no problems. Debugger works GREAT!!! (hehehe, see previous reply.)
However, I noticed a few things.
1. Don't use the emulator.
2. Get an ethernet card for your CE device. Otherwise the debugger is SLOW AS A DOG!!!!
Tim Smith
Descartes Systems Sciences, Inc.
|
|
|
|
|
1. the emulator when used for debugging applications works fine...
2. who do you think writes the drivers for the CE ethernet cards? I really have problems when writing this driver for a PCMCIA ethernet, a wireless LAN or a bluetooth card... I have to debug over USB (with the cradle).
Do you know a good kernel debugger for WinCE 3.0 iPac devices? I do not want to use the Platform builder and generate my own CE platform, since I need access to the already existing iPac platform.
--------------------------------------------------
If my messages appear curt, I apologize.
I try to be brief to save your time as well as mine.
--------------------------------------------------
|
|
|
|
|
Hi there,
Am trying to make an application in which i want to display data in form of tabs.I intend to use property pages.But i am not sure abt the number of the tabs at design time.Can i generate property pages dynamically and along with it can i add the caption as well as some components like grid control to it at run time itself.Am using VC++ 5.0.
Thanks in advance
vandana
|
|
|
|
|
hi
i am searching a code snippet for adding 'little buttons' in a text file (i.e. shown inside a CEdit control)
before pressing the little button [-]
[-] function1
row1
row2
...
end function1
after:
[+] function1
the little buttons ought to be 'inside' the text, just to the left of the function blocks, so that when i wish to collapse the function code i can see only its name, on the opposite when i re-expand it, the whole function block
thanks in advance for any help
|
|
|
|
|
Why are you avoiding the tree control which was built for just this purpose?
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
because i am trying to write a little source code manager to let me 'concentrate' only on the open function blocks, but inside the text editor itself
if i would use a tree control i would have to 'transform' the source text into tree nodes whilei wish to work inside the text itself, ok?
|
|
|
|
|
Ok, I understand. Something like the VS .NET editor.
I wish i could help you, but I can't.
I hope someone else can help you.
My guess is they have written some kind of custom-edit control from scratch. They'll prolly release it as a control in VS 8.0
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
hello thank you for your post
actually i was almost sure that i had seen something like that here on codeproject or on codeguru (if not really what i ask something very close to it) but unfortunately searching intensively all the two sites (articles, forum etc.) i wasn't able to find what i am sure not to have 'dreamed'
hope somebody will point me in the right direction
thanks again for your help
|
|
|
|
|
Hi,
I have
BITMAP bm;
hImage = (HBITMAP)::LoadImage (NULL, gszPreviewFile, IMAGE_BITMAP, 0, 0,
LR_LOADFROMFILE |LR_DEFAULTSIZE|LR_CREATEDIBSECTION );
GetObject(hImage, sizeof(bm), &bm);
I will get the contents of bm.bmbits as fffff..
I need to get the proper buffer for that bitmap.How can do that?
Any idea?
Regards
Neha
|
|
|
|
|
I needed to do this also, but couldn't really find a way.
The way I solved my problem in the end (which might not be suitable for you) was to use the CBitmapDC class from this site. I used CDC::SelectObject to get the bitmap into the DC, then CDC::GetPixel() to retrieve my image data.
hope that helps
Sorry to dissapoint you all with my lack of a witty or poignant signature.
|
|
|
|
|
In theory, if you create a DIBSection, then bm.bmbits will be populated, but I admit I've never used it. I believe I read somewhere to make it work you need to pass in sizeof(DIBSECTION), but I could be wrong.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|