|
As soon as a window is created, many different messages, including WM_SHOWWINDOW will start flying. But just because the parent window is created, doesn't mean its children are also alive and well. You can avoid this problem by making liberal use of IsWindow() :
if (::IsWindow(m_iconPitchActiveFault.m_hWnd))
m_iconPitchActiveFault.SetIcon( Red_OFF );
Best wishes,
Hans
|
|
|
|
|
How do you make m_iconPitchActiveFault?
|
|
|
|
|
Hi everyone!
I am currently developing the new interface for a CAD program, my customer made me made with TRULY dynamic toolbars, dockbar, arbitrary positioning, locking, controls, multicolumn and wetheaver could come in mind.. everithing ok until one day...they needed a feature with toolbars for wich:
1st) You have 2 toolbars and you put them on the (e.g.) the left side, by code or dragging, now you have one column with the first and second toolbar
2nd) Now the fear begins: you slowly shrink the application mainframe. When the lowest toolbar become invisible... WM_WINDOWPOSCHANGING,WM_MOVE,WM_WINDOWPOSCHANGED and the hidden toolbar jumps on the right of the one still visible. Yes that's the standard way, i know,
3d) But they don't like it cuz they've seen a product that in this situation does not move anything!!! The toolbars stays where they are EVEN HIDDEN!!!!
The reason for this is that having several locked toolbar, and a pretty complex interface (wich saves the various position of everything is on the screen) they don't like that such a change could happen. I tried to look to get some idea with ProfUI but they don't have this option.
I now work by several years on C/C++/MFC but i'm really getting mad to get an idea of where i can put my hands, i tried the CDockBar, the CMainFrame, hanging around with the debugger, subclassing, but i seems not to be able to find where the MainFrame (or who?) decide arbitrarely where to put the XXX toolbars
Thank you for the help, and if u are interested into tips for toolbars i'm here
Enrico
-Yes, i don't write a good english-
Unlukily it's not a Joke...
Hope you'll understand!!
|
|
|
|
|
I have three comments for you:
- There are other toolkits (www.codejock.com, www.bcgsoft.com) that might support the feature you are looking for.
- I understand very well how managers think like this, but it's not a good idea to change the way that the standard Windows UI works - tell them I said so. Moreover, trying to change the standard way is extremely time-consuming, as you have discovered.
- This is a professional site, and people here would appreciate it if you would use English, not SMS speak (u, cuz).
Best wishes,
Hans
|
|
|
|
|
Hello!
Thank you for the answer,sorry for the "sms" language, usually i try to speak in a clear way...when i am not wasted by too many hours delirium
It's a bit strange the request but it'something concering our direct competitor (far, far, far bigger than our company), that is using this behaviour, and at the customers asks for it...loudly...
Time consuming? Yes, a lot, i took me days of work the rest of things, i think i'll publish something on the toolbar subject on Codeproject, just to let other get some clue on this nightmare like (for me) topic. In the meantime i still hope someone has already achieved this result before (or i'll hope to get it as the other time after some, or many, days :P )
Thank you to everyone
Enrico
-Yes, i don't write a good english-
Unlukily it's not a Joke...
Hope you'll understand!!
|
|
|
|
|
Finally i was able to do all these things...
I simply added my CDockBar derived class to the project, modified all the calls to EnableDocking on my CMainFrame to use my new CMyDockBar, then removed the unnecessary code from the original MFC CDockBar...
& Happiness!!
-Yes, i don't write a good english-
Unlukily it's not a Joke...
Hope you'll understand!!
|
|
|
|
|
Hi, i was wondering if its possible to hide the try icon of the dial-up dialog after i called it with RasDial(), choosing a phonebook entry.
|
|
|
|
|
ugh, sorry for double post, had an browser error
|
|
|
|
|
HorrorVision wrote: sorry for double post
No problem, that's what the Delete button is for (in the lower right-hand corner of your post).
Best wishes,
Hans
|
|
|
|
|
HorrorVision wrote: Hi, i was wondering if its possible to hide the try icon of the dial-up dialog after i called it with RasDial(), choosing a phonebook entry.
find NISH system tray handller here on CP
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
hi i got a problem with sort linklist in c i confuse how to swap the number in linklist basicly i use selection sort and
"top is global variable that store unsorted linklist and i want to make it sorted" how ever icannot make it sort can u guys help me? thanks
void sortQ()
{
myQue *sq,*ft;
sq = top;
myQue *temp;
myQue *min = top;
while((sq != NULL)
{
min = sq;
ft = sq->nextQ;
while(ft != NULL)
{
if(ft->total < min->total)
min = ft;
ft = ft->nextQ;
}
//swap mode on
temp = sq;
sq->nextQ = min->nextQ;
min = temp;
sq = sq->nextQ;
}
}
|
|
|
|
|
before helping you, here is some step I would like to follow when posting on this board :
1. speak english ("u" is not correct english, "you" is ; use punctuation, and space your words).
2. when posting code, put it inside <pre></pre> tags so that everybody can benefit of the indentation.
3. in a general mean, follow the forum guidelines[^] dicted by the admin.
now, please edit your post (not repost a new one) and your post will hopefully get the help it deserves.
|
|
|
|
|
And one more thing: stop cross posting.
|
|
|
|
|
arifliminto86 wrote: //swap mode on
temp = sq;
sq->nextQ = min->nextQ;
min = temp;
The general format of any swap routine is:
A = B
B = C
C = A
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I wanted to clip a part of image and move it to the some other point...
I have a image and rectangle around it. On mouse move i want to place that image with rect to mouse position.
Also I wanted to resize image as paint does....on dragging the mouse...
It will be gr8 help if anyone provide me with sample code....
Thanks in Advance...
AmolM
|
|
|
|
|
I'm getting the following linker error in a debug build
IfcCache.obj : error LNK2001: unresolved external symbol _IID_DIA
The stub of code where the reference to IID_DIHPCUECtxDesc is made looks like CComQIPtr<dia, &iid_dia=""> pItemp = pdisptemp;
Should this not lead to a compile time error too?
|
|
|
|
|
did you provide all the .lib files in your linker settings ?
|
|
|
|
|
Below are the post build steps that are given in my project settings
echo copy $(TargetDir)$(TargetFileName) "D:\Program Files\Folder"
copy $(TargetDir)$(TargetFileName) "D:\Program Files\Folder"
echo regsvr32 /s /c "D:\Program Files\HP\Digital Imaging\bin\$(TargetFileName)"
echo regsvr32 exec. time > "$(OutDir)\regsvr32.trg"
I have separated the two groups by a line. If I understand correctly the first group shall copy the generated TargetfileName to the directory specified and echo the necessary message.
What I could not understand is the last piece of line that is mentioned. It also does an echo yet the intent seems to be one of registering
|
|
|
|
|
the > operator is for redirecting the output...
BTW, why not echoing a registration ? like that, you can see what's going on, no ?
|
|
|
|
|
Which step does the registeration and what does the following line imply
echo regsvr32 exec. time > "$(OutDir)\regsvr32.trg"
|
|
|
|
|
Hello,
is there any function for strip a string, file lines?
This is a text file with tab as separator.
Lets say we have a file with this format:
index fname lname age ...
1 name lname 20
Now strip index fname lname etc. in own values...
Thanx for any sugestion
termal
|
|
|
|
|
termal wrote:
Now strip index fname lname etc. in own values...
Normally, "strip" means remove. It sounds like you want to parse tab-delimited lines into separate variables. Yes?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
as i understood, it seems that he wants to strip the first line (which contains the columns headers)
but he'll probably need to parse over the tab too
|
|
|
|
|
Hello,
yes, sorry about my question!
You have right, i like to parse a tab-delimited lines into separate variables,
ok, i have all to show in grid so i look for a function, or idea to do this!
(and yes, i skip the first line with headers this part works )
When i try to parse the line, at end of file i have symbols like this: "ÌÌÌÌÌÌÌÌÌÌ", why that?
thanks
termal
-- modified at 10:33 Monday 7th May, 2007
|
|
|
|
|
Can you post your code that does the parsing?
|
|
|
|