|
I am having a problem with scrollbars. I am currently using automating MS Word into an application. It brings up MS Word but the scroll bars are there for about 1 to 2 seconds, then they disappear. What could be causing this? I looked through the documentation and found a lot about changing to CScrollView and it worked as far as keeping the scrollbars on the screen. But if I resize the document in the window (not resize the window itself), I lose the scroll bars. What could be my problem?
|
|
|
|
|
check CScrollView::SetScrollSizes()
|
|
|
|
|
Where should I be checking it at? When I resize the document (not the window), it goes into the OnDraw and OnSize functions. Should I have some code in OnSize to do the SetScrollSize. I read somewhere in these posts not to do it in the OnDraw function. Sorry if I am confused, I am new to Word Automation...
|
|
|
|
|
Also, I have to change it from CScrollView back to CView. It is putting the scrollbars on the actual window, instead of leaving them on the document. Any ideas how I can get them to stay on the document...
|
|
|
|
|
I need to know if it is possible to hook hardware interrupts with C++. If not, does anyone have a recommended way of doing it?
thanks
|
|
|
|
|
Depends on what operating system or platform you're using. If you're using DOS on PCs, it's not hard. If you're using Windows then you can't do it unless you have a driver. If you're talking about a common port i.e. serial or parallel, then the Win32 APIs or equivalent functions in MFC will work. What do u want to do?
|
|
|
|
|
yeah, it's win2K, and i'm trying to monitor an interrupt from a PCI card so it sounds like i would have to re-write the driver then
|
|
|
|
|
Well they have software tools now to help you write drivers like WinRT. Good Luck!
|
|
|
|
|
does anybody know about libraries to use OCR?, if they are free better, thanx
|
|
|
|
|
If you right mouse click in on any of the column in Windows Explorer (NOT IE), you can add or remove columns, like file size, date, attribs, etc. Any way to add your own column?
Thanks
Ralph Krausse
|
|
|
|
|
|
Please also tell me how can change the caption text at run time. Please give me the code.
Thankyou
|
|
|
|
|
pWnd->SetWindowText("MyNewCaption");
Cheap Oil. It's worth it!
|
|
|
|
|
SetWindowText()
Renjith True CP ian
|
|
|
|
|
I create an control using CreateWindow. The class name is edit. Then I set a procedure for it by using SetWindowLong fn GWL_WNDPROC. Even though, control goes there, its normal operations are affected. I clearly called DefWindowProc for message i dont want to handle. Then what is the right procedure, Pl. reply me.
|
|
|
|
|
I guess you must retrieve the previous window proc with GetWindowLong and GWL_WNDPROC and use this as your default proc instead of DefWindowProc .
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
What you need to do is when you call SetWindowLong, save the old WindowProc that is returned from that window.
Then if you do not want to handle that message you need to call the window proc that you cached. But you cannot call it directly, you will need to call CallWindowProc with the previous window proc as a parameter. CallWindowProc shields you from the possibility that you are dealing with a UNICODE window when you have create an ansi version. Windows automatically thunks all of the parameters for you.
CAlling DefWindowProc is not the answer because this is the default window procedure for all windows. There is very little processing that is done in DefWindowProc.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
What is the data type I can use to identify a variable that is 8 bytes. I get a warning that states my data will be truncated because I didnt allocate enough memory. I have used long, double, long double, but nothing works. I am setting a variable equal to a hex value.
double long rhs = 0xBFF074003BA3D70A;
This is how I have assigned my variable. Can I get some help on this. Thank you.
Josh
|
|
|
|
|
Heya,
try LONGLONG or __int64
/WW
|
|
|
|
|
__int64 for a signed number, or unsigned __int64 for unsigned.
--Mike--
Just released - RightClick-Encrypt - Adds fast & easy file encryption to Explorer
Like the Google toolbar? Then check out UltraBar, with more features & customizable search engines!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
I put an OCX control window. I put an Edit box derived from CEDit. In Edit box, if I press backspace, message will not posted to my active edit box, instead goes to IE. Similarly, Arrow Keys, Home, End Messages are captured by IE. How this can be avoided? How I Edit smoothly?
|
|
|
|
|
Please give me the code of edge detection.
It will be so nice of you.
Thanks
|
|
|
|
|
did you try searching codeproject? did you try google?
-c
Cheap Oil. It's worth it!
|
|
|
|
|
one method to detect edge:
do convolution on your image, and you'll get the edge.
Search for "image processing" and you'll get the algorithm.
|
|
|
|
|
Knowledge Seeker wrote:
Knowledge Seeker
You're not seeking very hard. Search the site.
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
Half the reason people switch away from VB is to find out what actually goes on.. and then like me they find out that they weren't quite as good as they thought - they've been nannied. - Alex, 13 June 2002
|
|
|
|