|
I want to add controls of different resource like buttons, edit boxes created at design time and a grid control in run time to a single tab control. How can I do this?
Thanks in Advance!!
Best Rgards,
Suman
|
|
|
|
|
The easier way would be to create a property sheet and add one single property page to it so as to show it as a tab. TO the property page you can add the controls statically or dynamically.
Since I haven't worked with CTabCtrl it doesn't seem possible for me to help you on this but I suggest you one another way in which you can do this.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
I saw the articles of tab control. But, I would like to know how to add a controls from more than one Dialog to a single page of a Tab control. The Create() function of Tab control takes single Dialog as its first argument.
Is putting all needed controls in a single Dialog and use it for creating tab is the only way?
Best Regards,
Suman
|
|
|
|
|
rp_suman wrote: Is putting all needed controls in a single Dialog and use it for creating tab is the only way?
Yes.
|
|
|
|
|
Hi,
I know that you can do owner draw of menu ITEMs by using MF_OWNERDRAW. Can we perform owner draw on the menu BAR as well?
Thanks!
|
|
|
|
|
|
Well that sample only skins the caption bar and not the Menu.
-Prakash
|
|
|
|
|
Agree! I want to put my own background color on the menu bar, which includes the items in the bar (such as "&File", "&Edit" and "&View") plus whatever space remains to the right of the last menu item. An example is Outlook 2003 where by default the menu bar is shown blue all the way to the right side of the window. However, Outlook 2003 is using some controls other than CMenu.
I was able to do owner draw on each of the ITEMs in the menu bar, but I am wondering if there is a way for me to extend owner draw all the way to the right side of the window.
Thanks!
|
|
|
|
|
Hey! Look up two posts
"Great job, team. Head back to base for debriefing and cocktails."
(Spottswoode "Team America")
|
|
|
|
|
which exact post are you refering to that gives the answer to the problem of owner drawn menu?
-Prakash
|
|
|
|
|
Excuse me? I don't recall addressing YOU
My message was for Whitesky nosey.
"Great job, team. Head back to base for debriefing and cocktails."
(Spottswoode "Team America")
|
|
|
|
|
Actually, I was serious, I wanted to know, how to custom draw the menu bar. Though I dont need it right now, but I thought that would have been a good information to have.
-Prakash
|
|
|
|
|
Sorry! I was just trying to direct Whitesky to another post. So was the question here
ever answered?
Mark
"Great job, team. Head back to base for debriefing and cocktails."
(Spottswoode "Team America")
|
|
|
|
|
I have two posts where on the codeproject or to this message?
|
|
|
|
|
I meant look two threads up You found it already.
"Great job, team. Head back to base for debriefing and cocktails."
(Spottswoode "Team America")
|
|
|
|
|
|
how to make a form behind all the desktop icons
|
|
|
|
|
????? What do you want to do? Install a Desktop Background ? That does not require CPP
LateNightsInNewry
|
|
|
|
|
yes , just a window form as the Desktop Background behind other icons ,perhaps,a application running at the same time can notes me something to do throw the form.
|
|
|
|
|
Hello
I need help building a DLL using Visual Studio 6.0.
Our company has a statically liked library which (as expected) contains functions used by various applications. We want to be able to call some of these functions from managed code (C#) and as best as I can determine, having them exported from a DLL is the way to go about it. I have made this work, somewhat, in that I can create a trivial Windows DLL (i.e. non-MFC) having exported functions (in C, not C++) that I was able to invoke from a C# console application.
Because the static lib uses MFC stuff (CString, etc.), I created an MFC (AppWizard) DLL using VS 6.0, and simply added the various files from the static lib (Project > Add To Project > Files...). The files were not copied and added to the project anew; the DLL project simply refers to the files in the static lib's folder. The static lib files I am trying to compile consist of both C++ classes as well as global C functions, though mostly the latter.
After getting past numerous problems, I was able to successfully compile all of the files in this new DLL project. However the subsequent link operation tried to produce the DLL's .lib (export) file at which point I got a slew of "unresolved external symbol" errors. It looks like these could
be related to one or more of the following: C++ function name mangling, the calling convention (e.g. __cdecl), static data members, or global C functions/types. I listed several of the link errors below.
At any rate, I am stumpified at this point. If anyone can suggest a solution I would be most grateful.
Thanks!
Christopher Brack
C3-ilex, LLC
Trends.obj : error LNK2001: unresolved external symbol "protected: static class CString CDaoRecordsetEx::m_Log" (?m_Log@CDaoRecordsetEx@@1VCString@@A)
ACSUser.obj : error LNK2001: unresolved external symbol "protected: static class CString CDaoRecordsetEx::m_Log" (?m_Log@CDaoRecordsetEx@@1VCString@@A)
AlarmClass.obj : error LNK2001: unresolved external symbol "protected: static class CString CDaoRecordsetEx::m_Log"
(?m_Log@CDaoRecordsetEx@@1VCString@@A)
DaoRecordsetEx.obj : error LNK2001: unresolved external symbol "protected: static class CString CDaoRecordsetEx::m_Log"
(?m_Log@CDaoRecordsetEx@@1VCString@@A)
MapboardPointsSet.obj : error LNK2001: unresolved external symbol "protected: static class CString CDaoRecordsetEx::m_Log"
(?m_Log@CDaoRecordsetEx@@1VCString@@A)
AGC_Misc.obj : error LNK2001: unresolved external symbol "bool __cdecl ExecDecreaseThreadPriority(void *)" (?ExecDecreaseThreadPriority@@YA_NPAX@Z)
AGC_Misc.obj : error LNK2001: unresolved external symbol "bool __cdecl ExecIncreaseThreadPriority(void *)" (?ExecIncreaseThreadPriority@@YA_NPAX@Z)
DbAddDev.obj : error LNK2001: unresolved external symbol "union _tDB_ADDRESSES DB_PTRS" (?DB_PTRS@@3T_tDB_ADDRESSES@@A)
DbLoad.obj : error LNK2001: unresolved external symbol "union _tDB_ADDRESSES DB_PTRS" (?DB_PTRS@@3T_tDB_ADDRESSES@@A)
DbRetDev.obj : error LNK2001: unresolved external symbol "union _tDB_ADDRESSES DB_PTRS" (?DB_PTRS@@3T_tDB_ADDRESSES@@A)
DbAccess.obj : error LNK2001: unresolved external symbol "enum Ctr_e_LMTy * DbTyTOLMTy" (?DbTyTOLMTy@@3PAW4Ctr_e_LMTy@@A)
DbAddDev.obj : error LNK2001: unresolved external symbol "enum Ctr_e_LMTy * DbTyTOLMTy" (?DbTyTOLMTy@@3PAW4Ctr_e_LMTy@@A)
DbLoad.obj : error LNK2001: unresolved external symbol "unsigned short * CUS_DIR_STR" (?CUS_DIR_STR@@3PAGA)
StInit.obj : error LNK2001: unresolved external symbol "unsigned short * CUS_DIR_STR" (?CUS_DIR_STR@@3PAGA)
|
|
|
|
|
Hello,
I'm having a problem with a CScrollView in a CSplitterWnd. It doesn't respond to any keyboard commands (WM_KEYDOWN) or to WM_MOUSEWHEEL. The CSplitterWnd is a 1 row, 2 col splitter. The left side (0,0) is a CFormView and the right side (0,1) is the CScrollView (CMessageView : CScrollView). Unfortunately CMessageView originally inherited from just a CView and I later changed it to inherit from CScrollView by manually changing all the CView references to CScrollView, except where there was a pointer to CView. This may be an underlying cause to the problem.
Anyway the scrollview responds properly to the use of the scrollbars, but doesn't respond to the keyboard or mousewheel. I've been able to determine that the CMessageView does indeed have focus and that it does in fact receive WM_MOUSEWHEEL commands. I haven't tried WM_KEYDOWN commands, but I suspect that it will respond to them as well.
Does anyone have any ideas on what I'm doing wrong? Or some suggestions on other things to try? I've googled on this for quite a while now and nothing that I've found seems to work. I thought that a CScrollView was supposed to automatically work with mouse wheels and the keyboard.
Thanks in advance for any help.
|
|
|
|
|
Write a program which outputs frequency of digits in a given integer. For example, if the number is 12424329, output will be
Number Frequency
1 (space) 1
2 (space) 3
3 (space) 1
4 (space) 2
9 (space) 1
Use a switch statement to obtain frequency of the digits.
im goin to try and work on it right now and see if i can get through just asking for alittle help thanks...
(space) doesn't mean anything just to make the numbers line up
|
|
|
|
|
Reading your exam question properly is probably a good start. Learning how to Copy and Paste it on this Message Board would count as a good second, at least people would know what the question is about, A good Third would be to realise that this message board is NOT about doing your exam work for you, Point four is, If you ask a question that NoOne can understand, Don't expect a sebsible answer.
Moral of the story: Read Books about CPP,C,Operating Systems, Anything you can get your hands at.Alternatively, Enroll in a Course and hang on to every word said. They call that Studying.
When you're finished doing reading and doing courses, Read More Books, Enroll to More courses. There's No Shortcut to Knowledge.
LateNightsInNewry
|
|
|
|
|
I think I provided you with the logic[^] a day or two before.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|