|
I also have the same question... and even more i want to know how can i shift those at bottom??
Megha
|
|
|
|
|
megha_gharote wrote: I also have the same question...
Me too jus kidding..
Did you try to add WS_MINIMIZEBOX style to the property sheet window? What happens if you do? Moreover, why is that you need to minimize a property sheet? I am asking this just out of curiosity.
-- modified at 2:45 Thursday 22nd March, 2007
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
brahmma wrote: WS_MINIMIZE
Correction, WS_MINIMIZEBOX .
|
|
|
|
|
Thanks, corrected.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
Come on ! No need to mention it.
|
|
|
|
|
megha_gharote wrote: and even more i want to know how can i shift those at bottom??
What ?
|
|
|
|
|
|
As bramha said earlier, why you needed it ?
Any way, use WS_MAXIMIZEBOX or WS_MINIMIZEBOX style for property sheet.
You can override OnCreate to look it like this,
int CMySheet::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CPropertySheet::OnCreate(lpCreateStruct) == -1)
return -1;
ModifyStyle(0,WS_MAXIMIZEBOX);
return 0;
}
This is just one way to add the style, You can use PreCreateWindow for same purpose,too.
|
|
|
|
|
It is not working. I am creating a propertysheet using DoModal() function and I want to put maximize and minimize button on the main window of propsheet. I tried using onCreate function and PreCreateWindow() function but It isnot working if I modify the dwStyle DWORD in the fuction.I even tried calling these functions explicitly in the constructor also( I know I should not do that)
What to do.....
-- modified at 5:18 Thursday 22nd March, 2007
|
|
|
|
|
If u want to add new buttons on Property sheet.. then u can try out this code
BOOL CGeomeSheet::OnInitDialog()
{
BOOL bResult = CPropertySheet::OnInitDialog();
// TODO: Add your specialized code here
// A pointer to button we will need
CButton *btnApply;
// We will need to location and dimensions of the Apply button
CRect RectApply;
// Get a handle to the Apply button
btnApply = reinterpret_cast<cbutton *="">(GetDlgItem(ID_APPLY_NOW));
// Get the location and the dimensions of the Apply button
btnApply->GetWindowRect(&RectApply);
// Convert the location and dimensions to screen coordinates
ScreenToClient(&RectApply);
CButton *Whatever = new CButton;
Whatever->Create("&Whatever", WS_CHILD | WS_VISIBLE,
CRect(6, RectApply.top, 85,
RectApply.top+RectApply.Height()),
this, 0x188);
return bResult;
CFont ctlFont;
ctlFont.CreateStockObject(DEFAULT_GUI_FONT);
Whatever->SetFont(&ctlFont, FALSE);
}
For more details u can go through http://www.functionx.com/visualc/
Megha
|
|
|
|
|
Hey Prasad,
buddy answer my question also ..
How to shift those buttons down.. and if we want to add two dialogues on a single prperty page how can we achieve it???
Help plzzzzzzzzzz
Megha
"Friend in Need is a friend Indeed"
|
|
|
|
|
|
Thank u Prasad for such a quick reply....
I have gone through this section but didn't get the datails..
I have added to pagaes in a property sheet and their names are coming as tabs on top. i want those tabs at bottom.. how can we do tht?
Can we put two dialog boxes in a single property page at the same time??
help needed urgently
Megha
friend in need is a friend indeed
|
|
|
|
|
megha_gharote wrote: i want those tabs at bottom.. how can we do tht?
Some thing similar to this[^] ?
|
|
|
|
|
Hi All,
i have a sample ADO application when i test through Rational Purify it is showing that there is leak in raw_Open() function.
please give me a suggestion where there is any leak in that?
[I] Summary of all memory leaks... {65488 bytes, 676 blocks}
[I] MPK: Potential memory leak of 18552 bytes from 147 blocks allocated in Connection15::Open(_bstr_t,_bstr_t,_bstr_t,long) [TestMemLeakADOConn.exe]
Offset 0x00000008 referenced by 0x0279ffe0, a location in a HeapAlloc'd block
Distribution of potentially leaked blocks
Allocation location
HeapAlloc [C:\WINDOWS\system32\KERNEL32.dll]
Connection15::Open(_bstr_t,_bstr_t,_bstr_t,long) [d:\samples\testmemleakadoconn\debug\msado15.tli:367]
}
inline HRESULT Connection15::Open ( _bstr_t ConnectionString, _bstr_t UserID, _bstr_t Password, long Options ) {
=> HRESULT _hr = raw_Open(ConnectionString, UserID, Password, Options);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
TestFunction(void) [D:\samples\TestMemLeakADOConn\test.cpp:88]
m_pConn->put_ConnectionTimeout (300);
=> m_pConn->Open(bstrConnect, "","",-1);
_CommandPtr pCmd(__uuidof(Command));
main [D:\samples\TestMemLeakADOConn\test.cpp:171]
Thanks,
Prashanth.v
|
|
|
|
|
How to temporarely configure ip address with netsh.when i restart the system the old ip will in ip address.how to perform this.plz help me.
-- modified at 1:58 Thursday 22nd March, 2007
|
|
|
|
|
Hi,
I created a .ocx ,and I want to export some of the functionalities in to dll,how i have to do it and where to start?
Please tell me from the scratch...
Thanks
Siddharth
|
|
|
|
|
Hi!
When I try to search this dll its not shown in the search list .but actually its in running mode.
I have download form the net and try to put in the system32 it gives access violation error.
"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India
|
|
|
|
|
amitmistry_petlad wrote: what is ws2_32.dll and what's the function of this dll?
It contains winsock APIs.
amitmistry_petlad wrote: When I try to search this dll its not shown in the search list .but actually its in running mode.
I have download form the net and try to put in the system32 it gives access violation error.
What?
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
I mean that when I try to paste that file in win32 its not allowed. I have disable the network resource as well as my winsock used application.
"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India
|
|
|
|
|
Why are you trying to paste a file that is part of the operating system?
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
I am try to check it for my one application which is a part of network programming.actually I have to link this file. I had link this file. So the linking problem is resloved but the reading error start, I have just try to paste for testing purpose nothing more.
"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India
|
|
|
|
|
This file comes with every version of the OS. You shouldn't need to copy it anywhere.
Have you initialized the dll for use by your app with WSAStartup[^]?
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
Where we can download free ebooks on MFC, COM, active X etc...pl guide me...
Thanks a lot
|
|
|
|
|
:-Dyou can try
http://www.esnips.com
where there will be large collections of books,
earlier there used to be a website called
http://e-books.amagrammer.net
now this web is closed obviously due to fact it had copyrighted books in it.. any one knowing a similiar site please do share the link. thanks in advance.
MAN MADE ICs. ICs MADE COMPUTERS. COMPUTERS MADE MAN MAD
Ravi
|
|
|
|