|
You can modify the header text .. Does it make sense??
Regards,
Sandip.
|
|
|
|
|
The way it's done in the sorted list view control in the WTL library[^] is to use the hbm member of the HDITEM [^] attribute of the header of the sorted column to set an up arrow or down arrow bitmap for the header. If you tell the bitmap to be to the right of the header's text, you'll get the effect you're wanting.
The bitmaps are available in shell32.dll as image resources 133 and 134.
You can learn a lot about this by looking at the implementation of CSortListViewImpl in the file atlctrlx.h in WTL...
The SetSortColumn method of this class shows how to set the bitmaps correctly, while the CreateSortBitmaps method shows how to create the bitmaps.
|
|
|
|
|
Invalidate does not work for me. Any other way?
|
|
|
|
|
ThisIsMeRon wrote: Invalidate does not work for me.
Reason??
Regards,
Sandip.
|
|
|
|
|
ThisIsMeRon wrote: Invalidate does not work for me.
You should ask Microsoft for a custom Invalidate, working for you.
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]
|
|
|
|
|
ThisIsMeRon wrote: Invalidate does not work for me.
i dont know what his problem is, but i have similar issue with InvalidateRect when when i was creating a control in win32, i tried RedrawWindow also but not worked. I solved issue by using the following code.
HWND hParent = GetParent( hChildControl ) ;
InvalidateRect( hParent , &rChildRect , TRUE ) ;
|
|
|
|
|
What kind of child was that? I mean was it a static control? What was its class styles?
- ns ami -
|
|
|
|
|
Your site is better I think it has a function Invalidatemyrequest(very urgent);
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
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]
|
|
|
|
|
ThisIsMeRon wrote: Invalidate does not work for me.
You must be using this API on wrong object. There is no way Microsoft has put some switch condition, not to work on your machine.
|
|
|
|
|
Did you use like this?
Invalidate();
UpdateWindow();
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Hello all,
I created a window. Over that window i created some controls of the class CButton, CEdit,CStatic, CComboBox.
My problem is that, i have to assign the tab order for this controls. I set the WS_TABSTOP property while creating this controls. But tab order is not set for this controls. How can i set tab order for this controls.
********************
CEdit* pedtName = new CEdit();
pedtName->Create(ES_MULTILINE | WS_CHILD | WS_VISIBLE | WS_TABSTOP,CRect(160,140,300,170) ,this,EDITNAME);
|
|
|
|
|
use
pedtName->SetWindowPos(...)
see the first parameter of SetWindowsPos
|
|
|
|
|
Sorry sir, it doesn't work.
I created two edit control as follows on the OnCreate() method of the application.
**************
CEdit* pedtName = new CEdit();
pedtName->Create(ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_MULTILINE | WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_BORDER,CRect(160,100,300,130) ,this,EDITNAME);
pedtName->SetFont(pFont,TRUE);
CEdit* pedtSurName = new CEdit();
pedtSurName->Create(ES_AUTOVSCROLL | ES_AUTOHSCROLL |ES_MULTILINE | WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_BORDER,CRect(160,140,300,170) ,this,EDITSURNAME);
*****************
When i run the application, focus will automatically set to pedtName control. When i press tab key, tab focus will set on pedtSurName.
But now it doesn't work. How to do this?
|
|
|
|
|
As other reply says you can use SetWindowPos for altering tab order.
You can also check here[^]..
I hope it helps.
Regards,
Sandip.
|
|
|
|
|
Why don't you simply create the controls in the order that you want.
«_Superman_»
|
|
|
|
|
If you want to set Tab Order on the dialog forum you must be press Ctrl+D or runtime liek this:
CWnd *m_pWnd1 = GetDlgItem (IDC_BUTTON1);
CWnd *m_pWnd2 = GetDlgItem (IDC_EDIT2);
m_pWnd1->SetWindowPos (m_pWnd2, 0,0,0,0, SWP_NOMOVE | SWPNOSIZE);
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
I had a old application developed in VC++6.0, with intraction with SAP RFC
and Iona Orbix(CORBA), Now we are migrating to VS 2005., and at this moment we are wondering to replace corba with now latest technilogy(ie.NET/ or ..), which out make chages in the much of the code.
Please advice efficient posibe ways and the respective adventage/disadvantages.
Thanks in advance.
|
|
|
|
|
You can have a look at ICE. Here[^] is a comparison between ICE and Corba. I never used ICE myself so I can't say anything about it, but I think it's worth a look.
|
|
|
|
|
i didn't want you solve my project.becuase i'mnot good at english i explain more . and i enter all the source. i want you guid me not solve it.
you speak with me very bad.
i was new and you should not speak with me in this way.
but thanks for your guid.
|
|
|
|
|
|
?? Ok first thing is that this is not a emotional center, if u r having a Q's (only valid Q's) u can ask for hint or short solution, u r giving huge code n asking how to acheive the o/p u r expecting.. definatly u must hav done something wrong...anyway never mind bad things if u want to be a best programmer...
|
|
|
|
|
In your original question you didn't specify what was the error and why you weren't able to overcome it. In other words, posting code is always good but you should also tell us what is the error or the obstacle in your way.
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]
|
|
|
|
|
|
Hamid. wrote: I can read your thoughts!
So you've the CPMRU's battery pack full charged, havent you?
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]
|
|
|
|