|
ok when i add
MSPPT.olb in 2005 and 2008 then i am not getting.There is any more option.
Please help me
|
|
|
|
|
what you are not getting?
|
|
|
|
|
sorry it's mistake
i mean to say
msppt.h
|
|
|
|
|
if you have msppt.h.Please attached it.
Thanks in advance
|
|
|
|
|
why do you insist on the name 'msppt.h'? You select whatever interfaces you want and let visual studio to declare wrapper classes for them in any .h file. You just include those .h files before using those classes.
Refer this
|
|
|
|
|
can you attache
msppt.h or whatever you name declare please help me
|
|
|
|
|
how to attach?
|
|
|
|
|
|
|
|
Thanks to mail me..But how can i use it..
|
|
|
|
|
still i am waiting for your response.
|
|
|
|
|
|
I'm working on MS Visual C++ 6.0. I have a dialog with a combo box on it. Since it needs to display the items in sorted order, i have checked the 'sort' feature available by right-clicking on the combo box and choosing "Sort". This does the job, except that the sorting takes place such that 11 appears before 2 (because the sorting is string based). I need the sorting done based on the length too i.e it should appear as 9, 10 ,11 and not 10, 11 and then 9.
How can I edit the "Sort" functionality of the combo box?
|
|
|
|
|
what are the values that your combo carry.
are they fixed? or are they going to change regularly.
--------------------------------------------
Suggestion to the members:
Please prefix your main thread subject with [SOLVED] if it is solved.
thanks.
chandu.
|
|
|
|
|
they are not fixed. Will change regularly.
|
|
|
|
|
in that case, follow what experts said below.
i.e. you have to sort them manually.
liz3 wrote: they are not fixed. Will change regularly.
it would be good, if you can narrate your task, with an example.
like,
1.are they going to have only numeric values? or can it have text too.
2.will it be loaded at the initiation of the application? or in between while operation on the UI.
3.please narrate what are the different possible values and what are the conditions, at which the values get addd to the combo.
all the best.
--------------------------------------------
Suggestion to the members:
Please prefix your main thread subject with [SOLVED] if it is solved.
thanks.
chandu.
|
|
|
|
|
AFAIK you should - disable the automatic (lexicographic) sort of the combobox.
- Sort yourself the items on insertion.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
This is a common problem with listbox types that sort on string values and do not take account of numbers. I think the only way to get your items in the correct order is to sort them manually and then add them to an unsorted combobox.
It's time for a new signature.
|
|
|
|
|
For a fixed owner draw combo box, handle WM_COMPAREITEM of parent dialog. Or create your own CComboBox derived class and over-ride CComboBox::CompareItem(). Implement your comparison logic there
CComboBox::CompareItem
WM_COMPAREITEM Message
|
|
|
|
|
In addition to the above suggestions, I offer the following.
If you don't mind the items of the combo box items look a bit different, and also you know the maximum width of the numbers, you can pad the items with leading zeros. This way, with the "sort" property set to true, the items will sort correctly.
For example, if you know the maximum width will be two, then format the items like this: 02, 09, 11, 10, etc.
Hope this helps.
|
|
|
|
|
I have a toolbar that can be dynamically floated. It is then in a window with a close button. How do I reopen it if it has been closed? Alternatively, how do I remove the close button.
Haakon S.
|
|
|
|
|
Add a menu item and handler in your CMainFrame class
void CMainFrame::OnViewMyToolbar()
{
if (m_wndMyToolBar.GetSafeHwnd() != NULL)
{
ShowControlBar(&m_wndMyToolBar, !m_wndMyToolBar.IsWindowVisible(), TRUE);
RecalcLayout();
}
}
void CMainFrame::OnUpdateViewMyToolbar(CCmdUI* pCmdUI)
{
pCmdUI->SetCheck(m_wndMyToolBar.GetSafeHwnd() != NULL && m_wndMyToolBar.IsWindowVisible() ? 1 : 0);
}
|
|
|
|
|
Thank you very much, Niklas. ShowControlBar was the key. I kept trying ShowWindow.
Too little research from my side, I should have managed to find out
But again, thanks for pointing in the right direction.
Best regards Haakon S.
|
|
|
|
|
Hi,
I am having a console application. Its a hidden application.I want to close that application.But still it remains in the task manager,its not getting closed.
Im using following code :
CWnd * cWindow = FindWindow("Afx:400000:8:10011 :4604cf", NULL);
::SendMessage(cWindow->m_hWnd, WM_QUIT, (WPARAM) 0, (LPARAM) 0);
Can anyone please tell me where is the error?
Thanks,
|
|
|
|