|
COOOOOOOOOOOOOOOLLLLL !!!!
I just found the dialog and removed all of them, and man, It works !
Thank you !
Shay
|
|
|
|
|
You are most welcome Sir!
-=jarl=-
|
|
|
|
|
Are you using any kind of integrated source code control? If so, it will take forever to load up large projects.
Even a broken clock is right twice a day.
|
|
|
|
|
No source control, sorry.
But I have around 30 classes in my project ,I don't think that's too big
|
|
|
|
|
No, actually that shouldn't be the problem
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Close everything and manually delete these files from the project's folder: *.NCB, *.PLG, *.OPT. Reopen and see if you notice a difference.
Regards,
Alvaro
Well done is better than well said. -- Benjamin Franklin
(I actually prefer medium-well.)
|
|
|
|
|
Hello,
INTRODUCTION:
I'm using a normal CListCtrl in a dialog based app.
When I update/edit a value in the ListCtrl (REPORT MODE) I validate it versus all the other values (they must follow some rules) and if some are not as they should have to be, I modify the variables that are linked to those parameters and then I re-populate ALL the ListCtrl reading those variables...
NOTE:
I know that this is not the best method... but it works and I have no time to improve it... moreover there are only 8 elements in the ListCtrl.
QUESTION:
In order not to fool the user I want to be able to place the selection where it was (over the last edited item). The fact is that I can see the selection mark over the desired element, but when I press the down arrow the selection gets placed over the first element.
After the edition I'm using this code now:
<br />
if (iElement == -1) iElement = this->m_ElementModificatAct.m_iItemActual;<br />
this->SetItemState(iElement, LVIS_SELECTED, LVIS_SELECTED | LVIS_FOCUSED);<br />
this->EnsureVisible(iElement, FALSE);<br />
this->SetSelectionMark(iElement);<br />
OK, the selection mark is drawn where it should be, but when I press the down arrow I get the selection not in the next element... I get it over the first element...
Could I do anything?
Thank you in advance.
|
|
|
|
|
Funny I just solved this after posting a similar question.
change
this->SetItemState(iElement, LVIS_SELECTED, LVIS_SELECTED | LVIS_FOCUSED);
to
this->SetItemState(iElement, LVIS_SELECTED| LVIS_FOCUSED, LVIS_SELECTED | LVIS_FOCUSED);
Dave Huff
Igor would you give me a hand with the bags?
Certainly - you take the blonde and I'll take the one in the turban!
|
|
|
|
|
|
Do you think I can use that trick in order for my list control not to deselect all items one it loses the focus ? When I press a button it deselects all items from the list... I have to select them again...
JM
Earth > Europe > France > Lyon
|
|
|
|
|
I use DirectShow for playing AVI. How to play AVI in the reverse direction?
|
|
|
|
|
Hello to all,
I have an embedded CPropertySheet inside a dialog and this sheet contains 4 pages. The user can't access the second page unless he has entered and saved a record inside the first one. So in the SecondPage::OnSetActive() I query some data members and if nothing has been entered I call the parent PropertySheet and ask it to SetActive the first page. UI wise the first page is selected but the controls displayed are still those of the second page. What call(s) do I have to make in order to display what the first page has to offer in terms of controls ????
Thanks in advance for any help !
Luc
|
|
|
|
|
Override the OnKillActive() for the 1st propertypage and return false in no record has been written. This stops the 2nd page being activated at all.
Roger Allen
Sonork 100.10016
This is a multiple choice question, choose wisely
Why did the hedgehog cross the road?
A: To show he had guts?
B: To see his flat mate?
|
|
|
|
|
Cool. Your suggestion work fine !!!
|
|
|
|
|
I need a non-MFC function that takes a filename, and returns a MD5 of the file. I'd prefer a non-RSA implementation, because of limited space for the copyright stuff. Anyone know of such a function?
Thanks!
|
|
|
|
|
Is there an easy way to write TRACES to a log? If not should I just use CFile or something similar?
Thanks in advance for your advice
Rob
|
|
|
|
|
Either create your own logging class (something derived from CFile), or re-define TRACE to add the text to a text file
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
One thing to make sure you do if you log to a file - make sure you CLOSE the file after each TRACE (or whatever) statement. That way if you crash, you don't lose the whole file.
Even a broken clock is right twice a day.
|
|
|
|
|
Not really, all you really need is the equivalent of a "flush" to ensure each message gets written. Continously opening, seeking to the end, and closing for each write operation sounds to me like a serious performance killer.
Regards,
Alvaro
Well done is better than well said. -- Benjamin Franklin
(I actually prefer medium-well.)
|
|
|
|
|
Thanks to everyone.. I went ahead and created a function with in my thread instead of doing a TRACE I run my function OnLog(strMessage) then in that function I do my logging.. everything is working great.. I found the problem after 5 mins of logging..
I'm sure its a huge performance hit but it was needed to debug, I'll disable the code once the problem is resolved.....
Thanks again..
Rob
|
|
|
|
|
Glad to have helped. A logging mechanism is essential for debugging applications such as yours.
Regards,
Alvaro
Well done is better than well said. -- Benjamin Franklin
(I actually prefer medium-well.)
|
|
|
|
|
hi,
i want to know how costly is it to create fonts,pens etc and u know, selecting and destroying every time, say in ondraw.
My problem is this(with font only)
I have to adjust the font size for the names of somethings which will be displayed in resiable boxes.the names should be appropriately sized according the box size.
any help
Raja Huus
|
|
|
|
|
hi,
i want to know how exactly are the ui stuff like tabs(especiallY) or comboboxes etc are drawn by windows.is the code accessible.I want this because i want to draw these on my own especially tabs to get the flattish look like the output window in the IDE.
(i suppose one should know how to draw if these are owner drawn. right?)
Krujic
|
|
|
|
|
Malcom Krujic wrote:
is the code accessible
You can step right into most of the MFC-code (but not in anything of WIN32 or (most?, all?) of the common controls).
You will find the MFC source files below your MSVC++ installation directory in MFC/SRC and MFC/include.
I hope this helps a little.
--
"My opinions may have changed, but not the fact that I am right."
Found in the sig of Herbert Kaminski
|
|
|
|
|
Talking about MFC...
Controls ( Tabs, Buttons, ... ) are usually derived from CWnd, and handle message via the message routing.
WM_PAINT is one of those message, the message is send to each CWnd, and if the CWnd handles it ( added an ON_WM_PAINT to the MessageMap section of the class, and OnPaint member function ) it will be drawn there.
Some UI objects like buttons, menu, listbox, offer a style OWNERDRAW, that can be set in the resource editor, or at creation time, when this flag is set, the DrawItem member function is called; in which you can also draw.
The CTabCtrl offer the OWNERDRAW style, search here, at codeproject, maybe there's already something like that, and there's a HOWTO on MSDN with DrawItem and CTabCtrl that can help.
Max.
|
|
|
|