|
I have a Visual C++ window application , and after some pass from one machine to another I can´t generate the debugg executable file, only the Release one.
|
|
|
|
|
==================
The original message was:
I have a Visual C++ window application , and after some pass from one machine to another I can´t generate the debugg executable file, only the Release one.
|
|
|
|
|
How do you add controls to a CTabCtrl at runtime?
Can you use dialogs like CPropertySheet?
I've searched MSDN from front to back on this, and can't find anything.
Thanks,
Frank
|
|
|
|
|
A tab-control is not like a property sheet in that you cannot add dialogs or child controls. Instead, the tab control only notifies you when events (such as the user clicking a tab) occur. It is your responsibility to show or hide controls for each tab as it is selected / deselected.
Cheers!
==================
The original message was:
How do you add controls to a CTabCtrl at runtime?
Can you use dialogs like CPropertySheet?
I've searched MSDN from front to back on this, and can't find anything.
Thanks, Frank
|
|
|
|
|
Is there any way to capture the double click event to allow the user to edit the name of the tab sheet?
Please email me.
|
|
|
|
|
Hi,
We normally create DLLs in VC for all Backend operations and use VB for GUI, use these VC objects and methods to interface with data servers.
My question is:
In VB, if we open the object browser and see the properties and methods of these libraries,
the first line of the panel in the bottom of the object browser states the Function name and Arguements required and the return value type.
The second line states that the class is a Member of some XYZ library...
The third line simply states method <methodname> or property <propertyname>
But the third line of ohher VB's library like VBA/VBRUN etc has more meaningful messages
for each of the functions and properties available in them.
Now, how to make the Object Browser display such meaningful messages for my user-defined Dlls classes?
I do not know where to define them when creating new classes in my dll?
Cheers,
Lakshmi
|
|
|
|
|
The "third line" in the VB Object Browser is displaying the help-string for the property or method in question.
Help-strings are defined in the component's type-library. The source for the type-library is typically a .idl file (could be .odl if you're using MFC). The ATL wizards that create interfaces assign a default help-string of "property NAME", where NAME is the name of your property. Simply change the contents of this string and recompile your type-library to update the value in the VB (or any other) browser.
The idl syntax for help strings is:
[helpstring("My Help String")]
HRESULT SomeMethod();
Hope this helps!
==================
The original message was:
Hi, We normally create DLLs in VC for all Backend operations and use VB for GUI, use these VC objects and methods to interface with data servers. My question is: In VB, if we open the object browser and see the properties and methods of these libraries, the first line of the panel in the bottom of the object browser states the Function name and Arguements required and the return value type. The second line states that the class is a Member of some XYZ library... The third line simply states method <methodname> or property <propertyname>
But the third line of ohher VB's library like VBA/VBRUN etc has more meaningful messages for each of the functions and properties available in them.
Now, how to make the Object Browser display such meaningful messages for my user-defined Dlls classes? I do not know where to define them when creating new classes in my dll?
Cheers, Lakshmi
|
|
|
|
|
Hi,
I have a embedded FlexGrid control on a dialog box and I have distributed MSFLXGRD.OCX and registered it in the production machine.
It was working fine and then all of a sudden it stopped working (the control doesn't load).
I think it has to do with licensing of controls, but I thought embedded controls have license keys stored in the executable code.
What could have went wrong and how can I fix this problem?
Thanks.
Glenn
|
|
|
|
|
Can someone explain to me how to get the Panes of a nested splitter window to size up correctly?
I know that I should know this, but I can't figure it out.
My splitter is 2 rows. Nested in the 1st row is 2 columns. So, three views.
|---------|
| | |
| | |
-----------
| |
-----------
^bad graphic.
The 2nd row always takes up the whole client area of the window. The nested portion is correct, once you drag the splitter bar down.
Any explanation of how to do this would be great.
Thanks, and sorry for the dumb question.
Frank
|
|
|
|
|
You set the initial size for each view in the splitter in the call to CSplitterWnd::CreateView(). For starters, try always passing a size of, say, 100x100. Then experiment with the numbers until you get the look you want.
--Mike--
==================
The original message was:
Can someone explain to me how to get the Panes of a nested splitter window to size up correctly?
I know that I should know this, but I can't figure it out.
My splitter is 2 rows. Nested in the 1st row is 2 columns. So, three views. |---------| | | | | | | ----------- | | -----------
^bad graphic.
The 2nd row always takes up the whole client area of the window. The nested portion is correct, once you drag the splitter bar down.
Any explanation of how to do this would be great.
Thanks, and sorry for the dumb question. Frank
|
|
|
|
|
I did that...but row 0 was always 0 high. Then, all of a sudden I remembered something...
CSplitterWnd::SetRowInfo(int row, int cyIdeal, int cyMin );
It worked.
Thanks!
Frank
==================
The original message was:
You set the initial size for each view in the splitter in the call to CSplitterWnd::CreateView(). For starters, try always passing a size of, say, 100x100. Then experiment with the numbers until you get the look you want.
--Mike--
================== The original message was: Can someone explain to me how to get the Panes of a nested splitter window to size up correctly?
I know that I should know this, but I can't figure it out.
My splitter is 2 rows. Nested in the 1st row is 2 columns. So, three views. |---------| | | | | | | ----------- | | -----------
^bad graphic.
The 2nd row always takes up the whole client area of the window. The nested portion is correct, once you drag the splitter bar down.
Any explanation of how to do this would be great.
Thanks, and sorry for the dumb question. Frank
|
|
|
|
|
Can anyone suggest a SMALL databsase solution, where the runtime needed is on the order of 100-200k rather than 1-7 meg like ADO or Jet.
Doesn't need to be full featured, just small.
Thanks,
Ryan Schneider
NeoWorx Inc.
|
|
|
|
|
The original message was:
>>Can anyone suggest a SMALL databsase solution, where >>the runtime needed is on the order of 100-200k rather >>than 1-7 meg like ADO or Jet. Doesn't need to be >>full featured, just small.
You may want to check into the following:
http://www.startech.keller.tx.us/xbase/xbase.html
- Xbase compatible database
http://www.equi4.com/metakit/
- Metakit
http://www.orcane.net/freeodbc++/
- libodbc++ Needs ODBC manager. Similar to Java's JDBC
ftp://ftp.simtel.net/pub/simtelnet/msdos/cpluspls/vb31027.zip
- VDB
The following links list database library collections:
http://cui.unige.ch/OSG/info/FreeDB/FreeDB.home.html
http://www.acm.org/sigmod/databaseSoftware/
Hope they're of use.
|
|
|
|
|
Hi !!!
In my MDI App, if the user close a child window (derived from CFormView)by clicking on the top right cross button (X), I would like my program to ask him if he is sure or not.
How could I do that ? Which message do I have to intercept ???
Thanks for your help !!!
Jed
|
|
|
|
|
Read the docs on CDocument::CanCloseFrame() That looks like it'll suit your needs.
--Mike--
==================
The original message was:
Hi !!!
In my MDI App, if the user close a child window (derived from CFormView)by clicking on the top right cross button (X), I would like my program to ask him if he is sure or not.
How could I do that ? Which message do I have to intercept ???
Thanks for your help !!!
Jed
|
|
|
|
|
Hi, everyone.
When I want to write some classes to display a menubar like VC IDE, I encountered a problem about drawing system items, the three buttons ,icon and system menu which is originally on the child window caption bar.When the child window is maximized, I have to draw them on my menubar, the icon and menu is easy to draw, but how about the three buttons on right. Is there some effient ways to do these jobs?
Thanks in Advance!
Wang Zhenzhe
2000/01/23
|
|
|
|
|
The API to do this is DrawFrameControl().
--Mike--
==================
The original message was:
Hi, everyone. When I want to write some classes to display a menubar like VC IDE, I encountered a problem about drawing system items, the three buttons ,icon and system menu which is originally on the child window caption bar.When the child window is maximized, I have to draw them on my menubar, the icon and menu is easy to draw, but how about the three buttons on right. Is there some effient ways to do these jobs? Thanks in Advance! Wang Zhenzhe 2000/01/23
|
|
|
|
|
i'm looking to find an HWND for a stationary Dialog box
this is what SPY++ gives me
WINDOW: 000004AC
TEXT: ""
CLASS: #32770(Dialog)
STYLE: 50000044
RECT: 6,380)-(598,524) 592x144
THREAD ID: FFFCB805
PROCESS ID: FFFCBFC9
is there anyway i can find the HWND or a CWnd to this dialog box, and veryify it with this
or any way i can get the mainwindow, and follow through, to this dialog?
it doesnt matter if its MFC or winAPI
Just need a way to get to this HWND
any help would be great
regards!
|
|
|
|
|
The Window line (WINDOW:000004AC) is the HWND of the Dialog.
HTH,
Chris
==================
The original message was:
i'm looking to find an HWND for a stationary Dialog box this is what SPY++ gives me
WINDOW: 000004AC TEXT: "" CLASS: #32770(Dialog) STYLE: 50000044 RECT: 6,380)-(598,524) 592x144 THREAD ID: FFFCB805 PROCESS ID: FFFCBFC9
is there anyway i can find the HWND or a CWnd to this dialog box, and veryify it with this or any way i can get the mainwindow, and follow through, to this dialog? it doesnt matter if its MFC or winAPI Just need a way to get to this HWND any help would be great regards!
|
|
|
|
|
I have seen several apps on Win98 that use softshape's
ActiveSkin ActiveX control. Mostly this control allows people
to haev a coherent means for creating skinned 'applications'. It includes
one function that allows you to set a transparency level.
If you download the control right from softshape you can use the
Visual Studio tools to view the interfaces their control provides.
There is an app called BoxCard @ http://softini.cjb.net
that uses this feature and will let you see it in action
I've tried several things briefly to try and implement some transluceny. It
is pretty easy to make a translucent menu or
dialog as long as it is WITHIN a frame window or something. You can
just make owner draw controls that get the parentdc and alphablend the
control DC with the parents. This works really well if you have a
stable bitmap background. However, this become very hard to do when you
have other windows moving around behind a translucent control or
you try to do this on the windows desktop.
Win2K provides a LayeredWindow to help with this. Does anyone have access to
a W2K dev kit that contains this implementation? I check my VC 6 for this
but it does not seem to be included. I'd like to see how they did this.
I also considered it might be possible to control how windows draws the
window, after all - doing this can't befar off from what programs like eFX
and WindowBlinds have been doing to change the frame bars on existing
windows already.
- Eric
Any suggestions? I plan on putting all this info together with some other
controls I've made and putting it up on the web with source. MFc is nice,
but its really easy to think of semi-simple things that are very diffculut
to do - like change an image on a static control (w/o hiding an existing one
and displaying a new control) Anyways, I'm getting off on a tangent. Please
let me know you thoughts or tips.
- Eric
crahen@buffalo.edu
DrCrahen@mad.scientist.com
|
|
|
|
|
I have seen several apps on Win98 that use softshape's
ActiveSkin ActiveX control. Mostly this control allows people
to haev a coherent means for creating skinned 'applications'. It includes
one function that allows you to set a transparency level.
If you download the control right from softshape you can use the
Visual Studio tools to view the interfaces their control provides.
There is an app called BoxCard @ http://softini.cjb.net
that uses this feature and will let you see it in action
I've tried several things briefly to try and implement some transluceny. It
is pretty easy to make a translucent menu or
dialog as long as it is WITHIN a frame window or something. You can
just make owner draw controls that get the parentdc and alphablend the
control DC with the parents. This works really well if you have a
stable bitmap background. However, this become very hard to do when you
have other windows moving around behind a translucent control or
you try to do this on the windows desktop.
Win2K provides a LayeredWindow to help with this. Does anyone have access to
a W2K dev kit that contains this implementation? I check my VC 6 for this
but it does not seem to be included. I'd like to see how they did this.
I also considered it might be possible to control how windows draws the
window, after all - doing this can't befar off from what programs like eFX
and WindowBlinds have been doing to change the frame bars on existing
windows already.
- Eric
Any suggestions? I plan on putting all this info together with some other
controls I've made and putting it up on the web with source. MFc is nice,
but its really easy to think of semi-simple things that are very diffculut
to do - like change an image on a static control (w/o hiding an existing one
and displaying a new control) Anyways, I'm getting off on a tangent. Please
let me know you thoughts or tips.
- Eric
crahen@buffalo.edu
DrCrahen@mad.scientist.com
|
|
|
|
|
I have CWnd* wnd;
And I have CDC* pDC;
How can I draw wnd to pDC?
|
|
|
|
|
Have you tried using CWnd::OnDraw(CDC *pDC)?
==================
The original message was:
I have CWnd* wnd; And I have CDC* pDC;
How can I draw wnd to pDC?
|
|
|
|
|
I've been developing an MFC regular dll which exports a function which creates and displays a dialog. Everytthing works fine. However I get a problem when I
insert an Active -X control (eg: MS-Chart control) at design time and then display the dialog. In this case when I call my exported function the dialog is not displayed at all, and I noticed one thing DoModal returns IDCANCEL.
What do I do to solve this problem.
Thanks, Anyhelp would be highly appreciated.
|
|
|
|
|
Did you call AfxOleInit() and AfxEnableControlContainer() ?
==================
The original message was:
I've been developing an MFC regular dll which exports a function which creates and displays a dialog. Everytthing works fine. However I get a problem when I insert an Active -X control (eg: MS-Chart control) at design time and then display the dialog. In this case when I call my exported function the dialog is not displayed at all, and I noticed one thing DoModal returns IDCANCEL. What do I do to solve this problem. Thanks, Anyhelp would be highly appreciated.
|
|
|
|