|
SourceSafe 6.0 was only marginally updated for .NET. As a result, it installs in
\Program Files\Microsoft Visual Studio (no .NET) by default.
Software Zen: delete this;
|
|
|
|
|
I have an MFC dialog app that has a Webbrowser object in it. I put a bitmap as a background to that application and now whenever something covers my dialog app, the webbrowser control doesn't get redrawn. How can I fix this problem? This is probably an easy question for many of you to solve, but embarrassingly it has left me scratching my head for the last half-hour.
Your help in answering my question will be greatly appreciated. Thanks in advance.
|
|
|
|
|
I stumbled across an MSDN entry recently about something like this but I can't seem to find it now...
IIRC, the problem was related to the control's or the parent window's style not being set properly - you needed to add or remove WS_CLIPCHILDREN or WS_CLIPSIBLINGS. Something like that.
Sorry for being so vague. HTH.
You should save yourself and your company years of grief by shooting yourself through the head immediately. Believe me, in the long run it'll turn out better for everyone. - Tyto (at arstechnica)
Awasu 1.0[^]: A free RSS reader with support for Code Project.
|
|
|
|
|
I think the problem is the dialog has the CS_HREDRAW and CS_VREDRAW styles by default. In CDialog::PreCreateWindow register a new class without these styles. This will prevent the erasing of the entire window which is what these flags do when you move the window or some window comes on top. Now your browser control should hopefully stop behaving nastily
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
Hi,
I have a bit of code that does this ...
<br />
X = (int)ceil( phi*y );<br />
Y = (int)floor( delta*pi );<br />
... but I get compile error C2065: 'floor' : undeclared identifier and
error C2065: 'ceil' : undeclared identifier.
Do I need to include some file or something?
|
|
|
|
|
try math.h
-c
When history comes, it always takes you by surprise.
|
|
|
|
|
Did you include the following header file
#include <math.h>
Gary Kirkham
A working Program is one that has only unobserved bugs
I thought I wanted a career, turns out I just wanted paychecks
|
|
|
|
|
I didn't like the greater than less than symbols
#include "math.h"
Gary Kirkham
A working Program is one that has only unobserved bugs
I thought I wanted a career, turns out I just wanted paychecks
|
|
|
|
|
You can escape < as < and > as >
--
It's not unusual to be picked up by a klingon woman
It's not unusual to have fun with a klingon
When I see you kicking me around
It's not unusual to see me cry, I wanna die
|
|
|
|
|
I understand that all *.cpp files in Visual C++ must
start with ...
<br />
#include "stdafx.h"<br />
... how can I make my C++ code portable with such
a restriction?
I tried this ...
<br />
#ifndef GNU<br />
#include "stdafx.h"<br />
#endif<br />
... but that doesn't seem to work.
What should I do if I want my code to compile under
more than ONE compiler?
|
|
|
|
|
For portable files you probably don'twant to use stdafx.h, which means no precompiled headers. Just set the Precompiled Headers switch for such files to "Not using precompiled headers".
|
|
|
|
|
thanks!
okay how do I do that?
|
|
|
|
|
I fell so dumb and inadequate today ... yesterday was such a good day!
I have a CButton derived button in a dialog ( a dialog app ) :
#include "MyButton.h"
CMyButton m_HelpButton;
and
...
void CTestColorControlDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Control(pDX, IDC_HELP_BUTTON, m_HelpButton);
}
...
My button is working nicelly, but I don't receive and message for WM_CREATE, or even the OnCreate virtual is not called.
I need to change the button size, from inside the class, at creation time; I don't want to have to manually create the button in the dialog's OnInitDialog just to do it.
Thank yo for helping a programmer in need!
Maximilien Lincourt
For success one must aquire one's self
|
|
|
|
|
You don't get the WM_CREATE message because windows creates a normal button first, and then subclasses it in the first call to the DoDataExchange method. When your class is attached to the button, the button has already been created.
You may be able to do want you want in the PreSubclassWindow() virtual method - this is called after the HWND is attached to your button, but before the window procedure has been replaced.
Dave
|
|
|
|
|
Controls created via a dialog template do not recieve the WM_CREATE message. Handle all control initialization in PreSubclassWindow() instead.
HTH
Sonork 100.11743 Chicken Little
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
Within you lies the power for good - Use it!
|
|
|
|
|
PJ Arends wrote:
use PreSubclassWindow() instead
Thank You! Oh ! I Love You!!!
Max.
Maximilien Lincourt
For success one must aquire one's self
|
|
|
|
|
Maximilien wrote:
Oh ! I Love You!!!
hmmm, shall we meet for a drink later?;)
Sonork 100.11743 Chicken Little
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
Within you lies the power for good - Use it!
|
|
|
|
|
u devil u ;P
"No matter where you go, there your are..." - Buckaoo Banzi
-pete
|
|
|
|
|
Hi, I have simple problem. I need get all users in my computer and for all users get special folder. Ist possible ? (no Common Folder etc)
Wiizi
|
|
|
|
|
Wizard_01 wrote:
I need get all users in my computer
NetLocalGroupGetMembers
NetLocalGroupEnum
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
|
Hello,
I am trying to use SHGetFolderPath in MFC app, however, I get error C2065: 'SHGetFolderPath' : undeclared identifier.
I have latest SDK, WinXP, and included the required header file shlobj.h.
if(SUCCEEDED(SHGetFolderPath(NULL, CSIDL_HISTORY, NULL, 0, lpPath)))<br />
{<br />
::SetCurrentDirectory(lpPath);
}
Why can't the linker find this shell function?
R.Bischoff | C++
.NET, Kommst du mit?
|
|
|
|
|
This is strange. According to my version of MSDN (October 2000), ShGetFolderPath is included in shfolder.h/shfolder.lib. However, my version of VC6 does not come with a shfolder.h. I also did a search for the function in any of the header files, and nothing.
Regards,
Alvaro
The world is a dangerous place, not because of those who do evil, but because of those who look on and do nothing. -- Albert Einstein
|
|
|
|
|
don't know what version of MSDN you have but mine shows
Windows NT/2000: Requires Windows NT 4.0 or later.
Windows 95/98/Me: Requires Windows 95 or later.
Header: Declared in shlobj.h.
Import Library: shell32.lib.
"No matter where you go, there your are..." - Buckaoo Banzi
-pete
|
|
|
|
|
I did a search for *.h file containing 'SHGetFolderPath' and I got it in ShlObj.h and ShFolder.h in Feb 2001 PSDK (last one I got for VC6) and also the same two files in the PSDK that came with VS.NET.
Sonork 100.11743 Chicken Little
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
Within you lies the power for good - Use it!
|
|
|
|