|
hi,
may be if u can load it to the screen DC u can save any part of the image..
Hope this helps..
Regards
hkprs
|
|
|
|
|
I am trying to mahe a multimon application with DDraw, I am working on visual 6.0 and DirectX 7.0 on W2K.
I would like to undestand why when I launch "DirectDrawEnumerateEx" with the flag DDENUM_DETACHEDSECONDARYDEVICES it does not enumerate my secondary screen device. In this case of course my second screen device is detached from desktop. When the second screen device is attached, it works well (with the flag DDENUM_ATTACHEDSECONDARYDEVICES) but I don't like much this configuration for a basic user is a little disturbing.
Any suggestion is wellcome, even if you know where I can find information about that
|
|
|
|
|
At first, my program is on the front of the desktop. Then I click on its minimize button, so that it will shrink as an icon on the task bar. I then click on this icon to restore it. What message would be sent to my program then? ! Since I overwrite the handler of WM_ERASEBKGND, I need to repaint the background in this case.
Thanks a lot in advance
|
|
|
|
|
override OnSize.
-c
Cheap Oil. It's worth it!
|
|
|
|
|
I overwrite the CMyView::OnSize(), but it is not called when I click on the minimize button or restore it from task bar. why?
|
|
|
|
|
Try overriding OnShowWindow() . OnSize() will be called when the window is resized.
/ravi
Let's put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Your window receives a WM_SHOWWINDOW message. The value of lParam is SW_PARENTOPENING . Other messages follow this message.
/ravi
Let's put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
no, it's not called, either.
|
|
|
|
|
The messages are probably being sent to your mainframe window.
/ravi
Let's put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
no. I added breakpoint at both
CMyView::OnShowWindow()
and
CMainFrame::OnShowWindow().
but it only stops when my program starts, not when it is restored from the taskbar. why??
|
|
|
|
|
Try WM_ACTIVATE, the message tells you whether the app was in minimized state when it got WM_ACTIVATE message. To find out what messages a app receives you can use Microsoft Spy++.
|
|
|
|
|
got it working now. Thanks a lot!
|
|
|
|
|
I have a combo list control in my application which I populate with strings on startup. On my system (WinXP && VS.NET) it runs perfectly, however on all the other systems I've tried it on (targeting Win2000 && NT) the combo list control does not populate with my strings.
I've looked all through my code and cant see the problem, I've stepped through the code but like I said .. everything works just fine on my system. Is there something I should be linking in with my program? Has anybody else run into this? I've statically linked the MFC libraries to the program since the DLL's will most likely -not- be on the client systems..
Thanks in advance for any ideas..
Travis D. Mathison --- --- After three days without programming, life becomes meaningless ...
|
|
|
|
|
Is your problem that when you press the down-pointing arrow, only a small line appears at the bottom of the control and it looks like no string has been added to the control?
|
|
|
|
|
That is exactly what it does. I was reading around CP and saw things on setting the height of the listbox that gets dropped down .. am I on the right track? If so, why would it work without doing that on my development system but not on the clients systems?
Travis D. Mathison --- --- After three two days without programming, life becomes meaningless ...
|
|
|
|
|
may be you should resize the combo box control. from the dialog editor click on the down arrow of the combo box and then resize the drop-down box. and build your project
|
|
|
|
|
Yeah, I realized this a little bit ago .. I don't know what the heck I was thinking. This issue was a no-brainer -- been one of those days.. thanks anyways :P
Travis D. Mathison --- --- After three days without programming, life becomes meaningless ...
|
|
|
|
|
Use MoveWindow and the height and width parameter defines the dropdown area.
|
|
|
|
|
How can I place a single symbolic letter in a StaticText-Field???
for example:
Angle (show Symbol: APLPHA) : 90°
Angle (show Symbol: BETA): 30°
|
|
|
|
|
Your best way of doing this is to create a member variable CFont object and create a font and set it for that static text control. You can then set the right character index for the reqquired symbol.
Take a look at the character map table supplied in windows and find a common font that supports the character(s) you need. Then create that font in code and apply it to the control.
Roger Allen
Sonork 100.10016
If I had a quote, it would be a very good one.
|
|
|
|
|
That's not the problem,
I try to explain:
I would have a "normal Text" with a single symbolic Character! I need this, because I would explain a mathematical form in a dialog!
|
|
|
|
|
- ANSI has primitive support for greek letters, but you can use some.
- Use Unicode.
- Create a custom font. (safest bet)
- Bark like a dog!
Jeremy L. Falcon<nobr>
Homepage : Sonork = 100.16311
"It was a blind man who taught me how to see." - Aerosmith
|
|
|
|
|
|
A ruler?
GetTextExtentPoint32() is another way.
/Magnus
|
|
|
|
|
Thanks, i think i'll go with the API how do you set a Device Context's font?
|
|
|
|