|
Hi,
I am busting my brain trying to get my parent dialog to have topmost priority over a child dialog. I have a fullscreen child dialog that I want to sit behind the parent dlg but the parent is continuously behind it. I have used MSDN and tried SetWindowPos.... however, in MSDN library there are 7 parameters for this function.... When I use SetWindowPos, I only have 6?
My SetWindowPos();
BOOL SetWindowPos(const *CWnd pWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags);
MSDN SetWindowPos();
BOOL SetWindowPos(HWND hWnd, HWND hWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags);
Its starting to really confuse me.... if anyone can help, it would be greatly appreciated.
Thanks
Ashman
I'm normally not a praying man, but if you're up there, please save me Superman.
|
|
|
|
|
BOOL SetWindowPos(const *CWnd pWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags) is a methode of CWnd class, so when calling it, it positions the object that is an instance of that class.
::SetWindowPos(HWND hWnd, HWND hWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags) needs a parameter to identify the window to be positioned (hWnd )
SkyWalker
|
|
|
|
|
Mircea Puiu wrote:
SkyWalker
SkyWalker getting very Fast ....
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
SkyWalker
|
|
|
|
|
Ashman wrote:
BOOL SetWindowPos(const *CWnd pWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags);
this MFC based version of SetWindowPos.. here the Detail of current Window Handle is hidden from user ... oops concept ..
Ashman wrote:
BOOL SetWindowPos(HWND hWnd, HWND hWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags);
this api version of SetWindowPos function.. now to access this function in mfc based application you have to use '::' scope resolution operator...
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hi all..
I want to perform copy paste operations on the items of the tree Ctrl.Can any one provide me with the code.
|
|
|
|
|
|
Hi guys and girls. Short question. Does ANYBODY know how to add an item to a Windows standard context menu after subclassing it? I would like to do that with one of the context menus of the system but without tampering with the registry. It's something related to sending some commands to that menu after the WM_INITMENU message.
-= E C H Y S T T A S =-
The Greater Mind Balance
|
|
|
|
|
Axonn Echysttas wrote:
I would like to do that with one of the context menus of the system but without tampering with the registry.
How about InsertMenuItem() api
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Yeap, sounds like a great place to start. Thanks Alok, my old friend ::- D.
-= E C H Y S T T A S =-
The Greater Mind Balance
|
|
|
|
|
I want to work on images in VC++. Is it possible to load bmp,jpg,png and tiff image types?
I have heard of IPicture class that uses OLELoadPicture() through which it is possible to load jpg and bmp, but I don't have any idea whether they work on pixel levels like returning and setting pixel values.
Can u help me out?
|
|
|
|
|
|
considering useing GDI+
-prakash
|
|
|
|
|
Hye
I am new to VC++ so I don't have much idea about GDI+. Using GDI+ would I be able to work on pixel values of images of different types.
Please help me out
|
|
|
|
|
hi,I want to convert bmp images into jpg ,But I have no ideal ?could you give me some opinions ,or give me a example ? Thanks!
No pians ,No gains!
|
|
|
|
|
Hi,
I would like to prepare a list of files which are created by any install setup file.
for eg.
When user install googlechat.exe
I need to list out the file names which are created by this setup as,
googlechat.exe -> c:\windows\system32\abcd.dll
googlechat.exe -> c:\program files\googlechat\googlechat.exe
I am using Hook Application. Is anybody have solution please.
Be simple and Be sample.
|
|
|
|
|
Rajesh_MP wrote:
I am using Hook Application. Is anybody have solution please.
Since Hook Application/dll run in context of Application, it is hooked so you can use
AfxGetAppName(...) or GetModuleFileName(...) api to get application name
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
you are right Gupta,
But when i use that, it just gives me the Process name and fails to give me the setup created file name.
Be simple and Be sample.
|
|
|
|
|
when is it ok to do pch++ and when should you use CharNext/_tcsinc? I'm guessing pch++ is fine for ansi char* and unicode TCHAR* for english, so do you use CharNext/_tcsinc for programs that will have text in a non-english encoding, a non-western european encoding?
- thanks
|
|
|
|
|
pch++ can be used for WCHAR* or, if you know the string is using a code page in which there are no multi-byte chars (e.g., English, Spanish, French), for char* too.
CharNext or _tcsinc are used when you want to write code that can be used, whithout changes, either for SBCS, MBCS, or Unicode builds. For example, the following code:
_TCHAR buffer[] = _T("This is a test");
int nLen = 0;
for (const _TCHAR* pch = buffer; *pch; pch = _tcsinc(pch))
{
nLen++;
}
gets expanded as follows:
char buffer[] = "This is a test";
int nLen = 0;
for (const char* pch = buffer; *pch; pch = _strinc(pch))
{
nLen++;
}
wchar_t buffer[] = L"This is a test";
int nLen = 0;
for (const wchar_t* pch = buffer; *pch; pch = _wcsinc(pch))
{
nLen++;
}
char buffer[] = "This is a test";
int nLen = 0;
for (const char* pch = buffer; *pch; pch = _mbsinc(pch))
{
nLen++;
}
See also: A Sample Generic-Text Program[^]
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
thanks for the reply. just wondering, do you know of any reference that tells which code pages are multi-byte, which are single-byte?
- thanks
|
|
|
|
|
good afternoon,
the app crashed with access violation and "scalar deleting destructor". I think it means there was an explicit call to virtual destructor corrupts stack. But I don't really see when did it happen........ here some part of the code that causing the problem..thanks!
bool chrgDlg::charges()
{
...............
if ( !m_bCanceled )
m_dbANI.MoveNext();
}
if (!m_vecBuffer.empty())
{
m_binOutfile.append (&m_vecBuffer[0], m_vecBuffer.size());
m_vecBuffer.clear();
}
if (!m_binOutfile.empty())
m_binOutfile.sort();
return true;
}
|
|
|
|
|
USER32! 77e338b0()
CDialog::EndDialog(CDialog * const 0x00000000 {CDialog hWnd=???}, int 2) line 580 + 13 bytes
CDialog::OnCancel(CDialog * const 0x00000000 {CDialog hWnd=???}) line 709
Run(void * 0x0012f750) line 310
_AfxThreadEntry(void * 0x0012f290) line 112 + 5 bytes
SURCHRG! _beginthreadex + 202 bytes
KERNEL32! 7c57b388()
|
|
|
|
|
Is there any multithread involved.?
-prakash
|
|
|
|
|
I'm trying to add a button that when the user pushes it, the Network Connections window will open. Or if possible the properties of the current connection (i.e. Local Area Connection).
Any suggestions?
I tried searching through the articles and the message board to no avail.
|
|
|
|