|
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
|
|
|
|
|
Try to search on Google[^]
Regards,
Paresh.
|
|
|
|
|
Please use
http://www.flazx.com/[^]
ok and if you need more then let me know I will provide you ok!!
"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India
|
|
|
|
|
you just register in this site
http://ebooksclub.org/[^]
enter into.. with user id and pwd. you can get almost all ebooks....;)
Nice talking to you. If you judge people, you have no time to love them. -- Mother Teresa
|
|
|
|
|
i think there are some broken links...pl verify this..
http://rapidshare.com/files/1440826/Programming_20with_20Microsoft_20Visual_20C___20.NET_206th_20Edition.chm
http://rapidshare.com/files/1440790/Programming_20Microsoft_20Visual_20C___20Fifth_20Edition.rar
http://rapidshare.com/files/1440748/Effective_20C____202ed_20and_20More_20Effective_20C__.zip
any how thanks to you
Thanks a lot
|
|
|
|
|
www.programmerworld.net
www.4shared.com
|
|
|
|
|
ganesa moorthy wrote: Where we can download free ebooks
Please buy a book, if you are serious about learning anything. Most of the ebooks available over the internet are illegal and I suggest you don't use any of those.
ganesa moorthy wrote: MFC, COM, active X etc...
You will get lost. You won't learn anything then. Learn one after another.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
brahmma wrote: You will get lost. You won't learn anything then. Learn one after another.
hahahahaha..... cool buddy..
Nice talking to you. If you judge people, you have no time to love them. -- Mother Teresa
|
|
|
|
|