|
I have a CFormView with 2 CStatic bitmaps used for backgrounds. One has an ActiveX graph control above it and the other has another bitmap. Z order is set so background bitmaps are on the bottom. Clip children and clip siblings are set. When first displayed everything looks good. After minimize/restore or covered by another window the background bitmaps display above the other controls.
To test I added a button and have the handler in CFormView that does m_graph.Invalidate() and m_foregroundbitmap.Invalidate(). When pushed the graph and forground bitmap display correctly. I also tried having the button handler just do Invalidate() (for the form view) which also displays correctly. Putting Invalidate() in any other handler (i.e. OnSize, OnActivate) doesn't work. It seems that the graph and foreground bitmap update but then the background bitmaps update and draw over the others. Setting Invalidate() in OnParentNotify() from the graph control does work but unless the mouse is over the control there's no notify messages so no update. I've also tried SetWindowPos(&CWnd::wndTopMost... which didn't seem to change anything.
Are there any ideas on what I might be missing or maybe another way to have controls over an image? (I need the background image because it gives a quick view to what changed in the control.) Thanks,
John
|
|
|
|
|
Z-Order for the child controls will not work for displaying a child window on the top of another.
What you can do is instead of using a CStatic control for displaying the bitmap, you can render the bitmap directly on to the parent window.
|
|
|
|
|
My flight simulation club is working on the development on an opensource flight simulator (Fly! Legacy) under GPL license.
http://sourceforge.net/projects/flylegacy/[^]
Currently, only a Windows version of this software is available and so, one or several people would be necessary (because the current developers are very busy at the time) to help us to convert this Windows application to a Linux application.
The application is developed in C++ and is compiled with Visual Studio 2008.
About the librairies included in the project, I don't know all because I'm not developer of the project but I can tell you that uses:
_ OpenGL
_ OpenAL
_ FreeImage
_ OPAL-ODE
_ Glew
_ PThread
_ STLport (not sure)
Could you help us ?
Thank you for your cooperation.
|
|
|
|
|
I see the goal of the project, but what exactly is the problem?
Also, is it necesary to convert the project to Linux? Running it in an emulator is not a viable option?
modified 13-Sep-18 21:01pm.
|
|
|
|
|
The problem is that we have a lack of developers on the project and as the result, those who developed the project at the moment don't have the opportunity to convert the Windows application into a Linux one, because they are working on more important priorities (like the creation of a 1st aircraft).
I heard that this task would be pretty fast to do (a couple of days), but for the moment, we don't know anybody who have the skills to work on this.
Unfortunately, an emulation solution (Wine, even a virtual machine) was rejected by the developers, mainly for performances reasons.
|
|
|
|
|
I meant, what is the programming problem?
Or should the question be seen as a request to do the full conversion project for you?
modified 13-Sep-18 21:01pm.
|
|
|
|
|
There is no programming problem.
Indeed, if we could find someone who would accept to do the conversion for us, that would be perfect.
|
|
|
|
|
Stephane-M wrote: if we could find someone who would accept to do the conversion for us, that would be perfect.
In that case you should post in the appropriate forum; your question has nothing to do with C/C++.
I must get a clever new signature for 2011.
|
|
|
|
|
|
|
No, we never tried Wine but the team has already rejected this solution because it wants a native Linux software, not an emulation or a virtual machine, mainly for performances reasons.
|
|
|
|
|
|
Hey guys,
I was just wondering, given Master File Table entries on an NTFS system, how would one retrieve the directory of the file? I understand there's an Index attribute somewhere, but i'm not sure how to read the index and convert it to a path or position.
Example of a file:
- Directory path: C:\Archives\
- Filename name: 09011105010CITV.txt
- Full directory path: C:\Archives\09011105010CITV.txt
I made these two files and ran a scan on my Master File Table. Using a custom built Hex Viewer, these are the two hexadecimal outputs of the files: MFT output[^]
Those are the blocks of data in the Master File Table. Now i'm going to try and see if I can try and figure out how to link the two together, but otherwise can anyone else lend a hand? Thank you.
Much appreciated!
|
|
|
|
|
This is a fairly large subject; I suggest you start by researching here[^].
I must get a clever new signature for 2011.
|
|
|
|
|
Well, I already have all the MFT reader running. Turns out I just need to parse the Index Root Attribute and read the indexes. Turned out to be quite simple. Thanks anyway
|
|
|
|
|
Hi All,
If I have 4 threads created, can I set any one thread to run for a specific amount of time. If yes , if there any APIs available for this.
|
|
|
|
|
I don't think there is any direct API way of doing what you require. I'd suggest that the thread that is to run for only a specific time, should be designed to check elapsed time in a looping fashion along with whatever else it is supposed to do. Once the elapsed time reaches the allowed time to run, it can then end.
Chris Meech
I am Canadian. [heard in a local bar]
In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]
posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]
|
|
|
|
|
|
To control the thread externally, i.e, from another thread, you can do a SuspendThread[^] on it after the specified time has elapsed.
This is not recommended in cases where the thread being suspended holds locks or synchronization objects.
In such cases you can send events to the thread to suspend itself.
But then the thread must be designed to handle such events.
|
|
|
|
|
i have more than 10 thousand items with more than 100 hierarchy level, creating contextmenu on right click giving problem,.. pls give me some inputs..
modified on Monday, January 10, 2011 9:01 AM
|
|
|
|
|
One word for you; Redesign. Even if you succeed in creating that mess it would look horrible just opening 10K items in a menu, and a contextmenu at that.
|
|
|
|
|
Ignoring the fact if this is userfriendly or not, it shouldn't be impossible to create something like that.
With 100 hierarchy levels and 10000 items, it's not needed to have the actual 10000 items in the menu at the same time. You can add the sub items when their parent is opened, rather than adding everything at once.
e.g.
Visible menu:
File | Edit | View | History | Bookmarks | Tools | Help
That's 7 required visible items. Now when the user clicks on an item, for example Edit, you'd insert the appropriate sub items;
Undo | Redo | Cut | Copy | Paste | Delete | Select all | Find | Find again
Now you've added only 10 items, since you can ignore all the subitems under File, View, History etc.
modified 13-Sep-18 21:01pm.
|
|
|
|
|
I would suggest you have 9,990 too many. Nobody can possibly navigate that many items (nor would they want to) in a main window menu, let alone a context menu. Go back to the drawing board and re-think what you are trying to achieve.
I must get a clever new signature for 2011.
|
|
|
|
|
yogish293 wrote: 0 thousand items with more than 100 hierarchy level,
I hope that is a typo. If not there is something horrible wrong with your design. Having 10K menu entries is simply not the way to design an application. One word comes to mind, Refactor your design.
|
|
|
|
|
I take it there are tons of functions being called by these menu items that are technically the same, but are just applied on different data, with different options, in different modes of operation, etc.. Provided this is true, you should seriously consider all these entries to be replaced by a call to just one dialog box that lets you select all the extra parameters you need. Do that with all menu of your current menu items and see how many individual function calls you end up with - I bet it's less than a 100. If not then this is the most weird application I've ever heard of, apart from MS Word.
|
|
|
|