|
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.
|
|
|
|
|
Actually the client part of the code creates an MFC worker thread which calls my exportred function.
I found a KB article in MSDN which said that I need to call OleInitialize(0) from my client. I did that also, but the dialog is still not displayed. Any ideas ?
Here is the pseudo-code,
UINT Thread Proc(LPVOID )
{
//exported function from regular dll which
//has a dialog with a Registered Active-X control
ShowDlg();
return 0;
}
void CMainFrame::OnViewTest()
{
AfxBeginThread(x,y);
}
The thing works fine if there is no thread involved.
==================
The original message was:
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.
|
|
|
|
|
Anyone written a custom button that looks like the "Open" button in the common file open dialog in Word2000? On the right of the button is an arrow that when pressed brings up a menu, however when any other part of the button is pressed the button asks normally.
Thanks
|
|
|
|
|
Hi all,
is it possible in c/c++ to call a function that is created from variables. ..
ex/
CString myFunction
myFunction = "SomeFunction()";
i would like to call the contents of myFunction.
don't know if its possible, any insight appreciated
Brain
|
|
|
|
|
Possible? Sort of kind of - check out Pete Becker's reply to a similar question at:
http://www.cuj.com/archive/1609/qa.html
==================
The original message was:
Hi all,
is it possible in c/c++ to call a function that is created from variables. ..
ex/ CString myFunction
myFunction = "SomeFunction()";
i would like to call the contents of myFunction. don't know if its possible, any insight appreciated
Brain
|
|
|
|
|
==================
The original message was:
Hi all,
is it possible in c/c++ to call a function that is created from variables. ..
ex/ CString myFunction
myFunction = "SomeFunction()";
i would like to call the contents of myFunction. don't know if its possible, any insight appreciated
Brain
Brian:
Yes, this is possible.
The function GetGreater will get the greater of the two values passed in...
int GetGreater ( int, int ) ;
typedef int (*GetGreater) (int, int) ; // this declares a ptr to this function.
Then in the code...
{
PGetGreater pgg;
int maxvalue;
pgg = GetGreater;
if ( pgg )
{
maxvalue = pgg ( 5, 3 ) ;
}
}
Or something like that
Peter.
|
|
|
|
|
Hi, I use contiguous range of command IDs and ON_COMMAND_RANGE() in my app. However, the IDs always be renumbered when I add other resource. This phenomenon drives my crazy. I¡¯d appreciate if someone could tell me how to prevent the renumbering. TIA.
|
|
|
|
|
I have a mapi session (logged on using and existing session), and as such, I have not specified the profile name.
Now that I am logged on, I need to know the name of the profile currently in use.
Any help out there?
|
|
|
|