Click here to Skip to main content
15,890,123 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Cant see out put of file at compile time Pin
Adam Roderick J25-Nov-09 0:41
Adam Roderick J25-Nov-09 0:41 
GeneralRe: Cant see out put of file at compile time Pin
Tim Craig25-Nov-09 14:48
Tim Craig25-Nov-09 14:48 
AnswerRe: Cant see out put of file at compile time Pin
Richard MacCutchan25-Nov-09 7:01
mveRichard MacCutchan25-Nov-09 7:01 
AnswerRe: Cant see out put of file at compile time Pin
Stefan7625-Nov-09 10:15
Stefan7625-Nov-09 10:15 
QuestionLoading PDF file in picture control Pin
Pryabu25-Nov-09 0:17
Pryabu25-Nov-09 0:17 
QuestionHow can I restrict a CListViewCtrl for column resizing . Pin
pandit8424-Nov-09 23:52
pandit8424-Nov-09 23:52 
AnswerRe: How can I restrict a CListViewCtrl for column resizing . Pin
Adam Roderick J25-Nov-09 0:06
Adam Roderick J25-Nov-09 0:06 
AnswerRe: How can I restrict a CListViewCtrl for column resizing . Pin
JohnCz7-Dec-09 18:45
JohnCz7-Dec-09 18:45 
LVSCW_AUTOSIZE_USEHEADER is not going to prevent column resizing. It will resize column width to auto-fit header text.
To prevent header from resizing, handle HDN_ITEMCHANGING notificationin a your list view control.
You will have to tolerate cursor changing from arrow to resizing.
To be on the safe side, you will have to handle both versions of this code:
HDN_ITEMCHANGINGA and HDN_ITEMCHANGINGW.
Depending on the OS and IE versions, list view control is built as ANSI or UNICODE.
Always return 1 from a handler.

You can handle it differenly by deriving your own class from CHeaderCtrl and handle HDN_ITEMCHANGING notification from this class after subclassing List view’s header control.
You also will be able to get rid of resizing cursor using derived class.

Remember that you can handle HDN_ITEMCHANGING notification only in view or header, never in both, unless you want to go really wild.

Why are you trying to "avoid" scroll bar?

JohnCz
MS C++ MVP

Questionconvert wav file to text file Pin
soo preety24-Nov-09 23:43
soo preety24-Nov-09 23:43 
AnswerRe: convert wav file to text file [modified] Pin
Adam Roderick J24-Nov-09 23:52
Adam Roderick J24-Nov-09 23:52 
AnswerRe: convert wav file to text file Pin
«_Superman_»25-Nov-09 8:35
professional«_Superman_»25-Nov-09 8:35 
QuestionReplacing virtual function address with global function address Pin
abhay4u24-Nov-09 21:54
abhay4u24-Nov-09 21:54 
AnswerRe: Replacing virtual function address with global function address Pin
Cedric Moonen24-Nov-09 22:02
Cedric Moonen24-Nov-09 22:02 
AnswerRe: Replacing virtual function address with global function address Pin
Adam Roderick J24-Nov-09 22:13
Adam Roderick J24-Nov-09 22:13 
GeneralRe: Replacing virtual function address with global function address Pin
abhay4u24-Nov-09 22:35
abhay4u24-Nov-09 22:35 
GeneralRe: Replacing virtual function address with global function address Pin
T210224-Nov-09 22:48
T210224-Nov-09 22:48 
AnswerRe: Replacing virtual function address with global function address Pin
Richard MacCutchan24-Nov-09 22:56
mveRichard MacCutchan24-Nov-09 22:56 
AnswerRe: Replacing virtual function address with global function address Pin
CPallini24-Nov-09 23:08
mveCPallini24-Nov-09 23:08 
AnswerRe: Replacing virtual function address with global function address Pin
Stuart Dootson24-Nov-09 23:34
professionalStuart Dootson24-Nov-09 23:34 
GeneralRe: Replacing virtual function address with global function address Pin
abhay4u25-Nov-09 16:48
abhay4u25-Nov-09 16:48 
QuestionHow to set Proxy Module in the MFC dialog ? Pin
wangningyu24-Nov-09 21:36
wangningyu24-Nov-09 21:36 
QuestionGetSaveFileName Problem Pin
002comp24-Nov-09 20:32
002comp24-Nov-09 20:32 
AnswerRe: GetSaveFileName Problem Pin
CPallini24-Nov-09 20:57
mveCPallini24-Nov-09 20:57 
AnswerRe: GetSaveFileName Problem Pin
KarstenK24-Nov-09 21:09
mveKarstenK24-Nov-09 21:09 
Question[Message Deleted] Pin
eswar pothula24-Nov-09 19:27
eswar pothula24-Nov-09 19:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.