And also is there a way to get a window rect that only gives you the coords of the actual view, i.e. ignores the title bar, status bar etc?
richiebabes
Posts
-
Modeless dialogs off the beaten track -
Modeless dialogs off the beaten trackI did it with OnMoving. Great - I can stop the user moving the dialog off the main window. But now what if I want the user to move it off the window but make the part off the window invisible?
-
Modeless dialogs off the beaten trackHow can I control my modeless dialogs when they are moved? They can be moved all over the place, off the main window into the wide blue yonder. How can I make sure they only stay within the bounds of the main window (which itself can be resized)?
-
Dynamic controlsTried this in OnInitDialog and OnSetActive. Causes and assertion both times.
-
Dynamic controlsI have a property page that is used multiple times in a wizard with slight variations each time. Therefore for each instance of the page I want to show/not show various controls. How do I do that? I thought I could just make a control variable and then do something like m_nListBox1.SetVisible or something or other. How do I dynamically make controls visible and invisible? I am missing something obvious and it must be because I got up far too early this morning.
-
Using += with CString - problemI am having major problems adding strings to the end of a CString with +=. Instead of just copying in the text I get a load of ganumph at the end of the string I don't want - e.g. here is one line of text that was produced - ÍÍÍÍÍÍÍÍÍÍýýýý««««««««îþîþ. Why do I get all this rubbish at the end? How do I get rid of it?
-
Multiline cells in grid control.How can I make a grid control cell multiline so that I can edit it like I would normally, with pressing enter between lines etc.? I have a grid control created at runtime and have tried changing the dwStyle flags in the create function but nothing happens.
-
Grid controlI can't get Chris Maunder's grid control to work. Get this: Linking... GridCtrl.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall CTitleTip::~CTitleTip(void)" (??1CTitleTip@@UAE@XZ) referenced in function __unwindfunclet$??0CGridCtrl@@QAE@HHHH@Z$0 GridCtrl.obj : error LNK2019: unresolved external symbol "public: __thiscall CTitleTip::CTitleTip(void)" (??0CTitleTip@@QAE@XZ) referenced in function "public: __thiscall CGridCtrl::CGridCtrl(int,int,int,int)" (??0CGridCtrl@@QAE@HHHH@Z) GridCtrl.obj : error LNK2019: unresolved external symbol "public: void __thiscall CTitleTip::Hide(void)" (?Hide@CTitleTip@@QAEXXZ) referenced in function "protected: void __thiscall CGridCtrl::OnHScroll(unsigned int,unsigned int,class CScrollBar *)" (?OnHScroll@CGridCtrl@@IAEXIIPAVCScrollBar@@@Z) GridCtrl.obj : error LNK2019: unresolved external symbol "public: void __thiscall CTitleTip::Show(class CRect,char const *,int,struct tagRECT *,struct tagLOGFONTA const *,unsigned long,unsigned long)" (?Show@CTitleTip@@QAEXVCRect@@PBDHPAUtagRECT@@PBUtagLOGFONTA@@KK@Z) referenced in function "protected: void __thiscall CGridCtrl::OnMouseMove(unsigned int,class CPoint)" (?OnMouseMove@CGridCtrl@@IAEXIVCPoint@@@Z) Debug/gc.exe : fatal error LNK1120: 4 unresolved externals Help!!!!!!!!!1