|
Thanks for your suggestion Tomasz.
It does bring the tooltip to the front, but when I move the cursor over a new item (without clicking on it), the tooltip vanishes for about 1 second (and the dialog box title shows that it is no longer the active window), and then it reappears OK.
Any suggestions gratefully received...
Monty
|
|
|
|
|
Adding the SWP_NOACTIVATE flag to the SetWindowPos call prevents this problem.
Thanks again for your help Tomasz.
|
|
|
|
|
how can i fill the testprintpage in VC++ ?anybody knows pl.. let me know about it with code
|
|
|
|
|
Hi,
I have created a class with CPropertyPage as its base.
I am then using the m_psp member to build a PROPSHEETPAGE structure which I pass to CreatePropertySheetPage function to create a property page I can add to a device's property pages.
The problem comes when in one of the routines for a button on my CPropertyPage I create an instance of a CDialog class I have and call DoModal()
The device manager crashes when this is run.
Any ideas why would be useful.
thanks
|
|
|
|
|
Hello!
I'm trying to create a MFC dll that makes use of MS WebBrowser activeX
component. Another application loads the library runtime and calls certain
function that creates a dialog box with an explorer control. When creating
the dialog box, however, the initialization of browser control fails,
reporting
CoCreateInstance of OLE control {8856F961-340A-11D0-A96B-00C04FD705A2}
failed.
>>> Result code: 0x800401f0
>>> Is the control is properly registered?
Warning: CreateDlgControls failed during dialog init.
In the dll initialization, I call AfxEnableControlContainer().
If I build an EXE that creates a simple dialog with explorer control, it
runs just fine, but if I try to use it in a DLL, things don't work out.
Any ideas how to make it work?
|
|
|
|
|
I'm not an MFC newbie and I'm still having the same exact problem with a different ActiveX control. I've been told that you also need to make a call to AfxOleInit() in the DLL initialization, but I've done that and it hasn't helped me a bit. Nobody so far has been able to help me solve this problem and it's really becoming frustrating. Let me know if you find a solution.
|
|
|
|
|
Hi Everybody
I need to create a CListCtrl of which one of the subitem is more than 300 characters - I found that the CListctrl by default limits its subitem's max lengh to around 260 characters. Even though i see the value in the debugger - it's truncatd when i view it on the screen. Any code would be of much help.
Thanks in advance.
regards
Sankar
|
|
|
|
|
I've seen the same problem and thought it was a bug in my code at first. It's pretty pathetic, really. 300 characters is not a sensible limit, if any limit is sensible in the first place.
Death to fixed-size buffers!
|
|
|
|
|
I want to fax some documents through my project which was doveloped in Doc\View.My system dosen't supprt Windows2000.it should work on only NT.can anybody help me to code it?this is very urgent...
|
|
|
|
|
What is a good, relatively simple (and *free* preferably) program to create
patches with?
I had experimented with BinPatch for a little bit, but the one thing I don't
like about that is that it always creates backups on the users computer of
the file(s) it patches. In the docs for it, it said that in the next
version, there would be a way to set backup to none, but apparently there
never was a "next version". Also I would love to have a GUI interface for
the patch creator, but the one for download (www.binpatch.com) is
corrupted...
Does anybody else know of a good program I could use?
Thanks!
Adam
cabadam@houston.rr.com
|
|
|
|
|
Try PCOM
All the crackers seem to use it.
http://huizen.dds.nl/~exed/
Cheers,
Peter
|
|
|
|
|
That download goes incredibly slow and disconnects constantly.
Anybody else have a suggestion?
Adam
cabadam@houston.rr.com
|
|
|
|
|
I am learning C++, and I am trying to make globber (Sample on MSDN CD) and it draws a SDI window and all of its functions are LRESULT. I am trying to make it into a Dialog application for easier use but I keep getting errors. Does anyone know how I should go about converting this. Thanks in advance.
-Matt Newman
|
|
|
|
|
I'm working on a program that can work with both NT and Win9x. I finish the NT version first, then try it in Win9x. I found that after doing output awhile or moving the window around, the font change!!!! And also the system change too (all system dialog box font changes..).....and if I did something....Win9x asks me to terminate the program too....(this dialog font has been changed too)
Moreover, when I do drawing......after the font change.....no colour can be displayed....only black and white.
My question is....do i have to do anything when I migrate the NT program to win9x. Are they different?
|
|
|
|
|
That sounds like you have a severe leak that's eating up GDI resources. Win9x still has old Win 3.1 memory limitations, so that's why you see the problems on 9x.
--Mike--
http://home.inreach.com/mdunn/
#include "buffy_sig"
|
|
|
|
|
Can you tell me what should I do??? Because i really have no idea how to fix the problem.
But thanks to telling me that.
|
|
|
|
|
You say you do drawing. Maybe you allocate some stuff, like CreateDC() and then forget to call DeleteDC(), this could also be with brushes, pens, bitmaps and...
If you do that kind of custom drawing, without releasing the resources you use, Win9x can run out of GDI resources pretty quick.
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
Hiya!
Is there a way to draw or write something on screen when another program, a game using opengl or directX for example, is running? If so, how?
Thanks in advance,
Phybe
|
|
|
|
|
When using unicode, how to write double byte strings to text files without leaving a space between characters (WriteString of CStdioFile does not work in Embedded VC++)?
Also how to add new lines to the output file?
|
|
|
|
|
I have an SDI app which stores and retrieves its contents using serialization.
the app will only ever use one data document, so i want to hard code the open and save commands to save the user from using the menus and toolbar buttons.
I've tried using the OnOpenDocument command with limited success......my problem is essentialy that I don't know where to place the command so that it effectively prevents the automatic doc opening in the template construction.
A fairly basic question I know, but if someone could take the time to help it would be appreciated.
|
|
|
|
|
Try using OnOpenDocument("YourFilename.ext") in InitInstance. I'm not sure what to use in ExitInstance for the save though.
Chris
|
|
|
|
|
I have a friend that needs to work in C Builder.
Anybody know, where he can find info, like helps, tutorials, etc.
Thanks a lot....
Carlos Antollini.
|
|
|
|
|
Borlands home page has some useful links, go to www.borland.com
TrollSlayer
|
|
|
|
|
Does anyone know if there is some peace of code to create a CListBox or CListCtrl with Caption in a FormView or Dialog?
Just to make it clear I'd like something similar to the Query Design in MSAccess, so you can resize and move the control around its parent window.
[]'s
Crercio O. Silva
|
|
|
|
|
how can i cast a COleDateTime to a CString?
|
|
|
|