|
Thank you very much!
But still the same!
|
|
|
|
|
After further thought, the standard edit box is not double buffered, so it erases the background and then draws the text, so I think that's why it's flickering. I'm not sure how to fix it.
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
Anyway! Thank you very much!
|
|
|
|
|
i want to add some functionality to maximize minimize button of a dialog or form view. how can i do this?
|
|
|
|
|
uetiean wrote:
functionality to maximize minimize button of a dialog
Override WM_SIZE
In the OnSize function
if(nType==SIZE_MINIMIZED)
if(nType==SIZE_MAXIMIZED )
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
Overide
WM_NCLBUTTONDOWN()<br />
<br />
void OnNcLButtonDown( UINT nHitTest, CPoint point )<br />
{<br />
if( nHitTest == HTMINBUTTON )<br />
{<br />
AfxMessageBox( "MinButton" );<br />
}<br />
if( nHitTest == HTMAXBUTTON )<br />
{<br />
AfxMessageBox( "MaxButton" );<br />
}<br />
CDialog::OnNcLButtonDown( nHitTest, point );<br />
}
|
|
|
|
|
CWnd::GetTextExtent() or CWnd::GetOutputTextExtent() does not return the correct width of the text in asian languages OS on Windows 2K. The same works as expected on Windows XP.
I have seen this with GetWindowText() also. Does anyone know or seen this issue. What is the reliable way to correct this.
Best Regards, Madhu.
|
|
|
|
|
Did u tried the DrawText() funtion instead of GetTextExtent()?
nave
|
|
|
|
|
Hi,
I would like to know how to navigate from one tab page to another, as stupid as this sounds I'm struggling my butt off
Lets say you have this code:
// Adds the TabControl to the form.
this->Controls->Add( this->tabControl1 );
// Adds the tab pages to the TabControl.
tabControl1->Controls->Add( this->tabPage1 );
tabControl1->Controls->Add( this->tabPage2 );
tabControl1->Controls->Add( this->tabPage3 );
Just to move from tabPage1 to tabPage2, if anyone can help, plz do
Thanx
Programm3r
Regards
Programm3r
|
|
|
|
|
Never mind I got it
Regards
Programm3r
|
|
|
|
|
What is the difference between CoIntializeEx() and CoCreateInstanceEx()?
I am using CoInitializeEx() in my client program. It connected with server when it is in local machine.When the server in Remote machine,i gave me error in CoCreateInstanceEx():Failed to node:Ip address of the remote machine
Anu
|
|
|
|
|
Anu_Bala wrote:difference between CoIntializeEx() and CoCreateInstanceEx()
First of all they aren't similar
CoInitializeEx()
Initializes the COM library for use by the calling thread, sets the thread's concurrency model, and creates a new apartment for the thread if one is required.
CoCreateInstanceEx()
Creates an instance of a specific class on a specific machine.
Anu_Bala wrote:gave me
error
What parameter's are you passing to CoCreateInstanceEx()?
|
|
|
|
|
I dont know how to get the clsid in the server code to give in this CoCreateInstanceEx() function.
I gave clsid to register the server in my server code.
Please can u give any sample code of this function.
Anu
|
|
|
|
|
COAUTHIDENTITY authorization;
authorization.User = L"MyUserName";
authorization.UserLength = wcslen(L"MyUserName");
authorization.Domain = L"MyDomain";
authorization.DomainLength = wcslen(L"MyDomain");
authorization.Password = L"UserPassword";
authorization.PasswordLength = wcslen(L"UserPassword");
authorization.Flags = SEC_WINNT_AUTH_IDENTITY_UNICODE;
COAUTHINFO authinfo;
authinfo.dwAuthnSvc = RPC_C_AUTHN_GSS_KERBEROS;
authinfo.dwAuthzSvc = RPC_C_AUTHZ_NONE;
authinfo.pwszServerPrincName = L"PutDomainName\\Machine Name Here";
authinfo.dwAuthnLevel = RPC_C_AUTHN_LEVEL_CONNECT;
authinfo.dwImpersonationLevel = RPC_C_IMP_LEVEL_IMPERSONATE;
authinfo.pAuthIdentityData = &authorization;
authinfo.dwCapabilities = EOAC_NONE;
COSERVERINFO MyServerInfo;
MyServerInfo.dwReserved1 = 0;
MyServerInfo.pwszName = L"RemoteServer";
MyServerInfo.pAuthInfo = &authinfo;
MyServerInfo.dwReserved2 = 0;
MULTI_QI qi;
qi.pIID = &IID_IUnknown;
qi.pItf = NULL;
qi.hr = 0;
HRESULT hr = CoCreateInstanceEx(GUID_NULL, NULL,
CLSCTX_REMOTE_SERVER, &MyServerInfo, 1, &qi);
I hope this will help or provide you with some guidelines.
|
|
|
|
|
Hi, Does anyone know how i can store the address of a particular node ie. "startPointer". This variable will store the address of a node so that that i can call out to the node when i need it in any of my functions. My code will have no problem if I declare the startPointer variable globally. But the problem now is that based on my assignment req, I'm not allowed to declare any variables global other than the specified ones.
struct data
{
double xstart, xend, ystart, yend; //get xstart,xend,ystart,yend values
int child, iter, width, height; //get iteration value
data* next; //pointer to next node
};data* startPointer;
...
...
main(){...
Is there any way that I could get around this?
Thanks
|
|
|
|
|
data* startPointer = new data;
unsigned long v = reinterpret_cast<unsigned long>(startPointer);
|
|
|
|
|
Hi there,
There's a question about DirectSound. I wanna capture sound and play captured sound at the same time with the smallest latency. So I've got two buffers - sound and capture. I created N notification points in capture buffer and I'm trying to copy data from one buffer to another... But these buffers are owned by different devices. As everybody knows, there're not two equal frequency generators... so one buffer's always slower/faster than another. There're a lot of algorithms to manage this problems, they're called Sample Rate Convertors. They remove/add some samples from/to buffer, so difference between capturing and playing sound is getting to zero. But first of all I somehow should detect how many samples algorithm must add/remove... That makes a big problem for me.... How can I do it?
Thanks for suggestions.
Regards,
UVSoft.
|
|
|
|
|
Hi ,
How to rute a call from class Mainframe to InPlaceFrame in an Active Document Server Application ? Or how we can call a function mapped in InPlaceFrame from class MainFrame ?
Thnx in Advance
|
|
|
|
|
Hi ,
How to rute a call from class Mainframe to InPlaceFrame in an Active Document Server Application ?
Thnx in Advance
|
|
|
|
|
Hi all,
How do i make my dialog box stationary, that means in permanent position(not movable by an user)?
Can anyone please help me in this regards?
Thanks.
Regards,
Ram
|
|
|
|
|
You can catch the moved event and move it back. I don't believe you can lock it otherwise.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Do this...
CMenu* pSysMenu = GetSystemMenu(FALSE);
pSysMenu->RemoveMenu(SC_MOVE, MF_BYCOMMAND);
|
|
|
|
|
If the title bar is not needed remove it from ur dialog.
Dream bigger... Do bigger...Expect smaller
aji
|
|
|
|
|
Trap WM_NCHITTEST, and make sure you never return HT_CAPTION, and trap WM_SYSCOMMAND, disallowing SC_MOVE.
Steve S
Developer for hire
|
|
|
|