|
Is this a C# question? Have you used Spy++ on the desktop to see what messages it receives after the Sidebar changes?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Actually it's a Win32 question, but I didn't see a specific forum.
{o,o}.oO( Want a great RSS reader? Try FeedBeast! )
|)””’) ( Check out my profile for a special members deal! )
-”-”-
|
|
|
|
|
logan1337 wrote: Actually it's a Win32 question...
Is this a new language , or are you referring to some IDE?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Win32's anything but new. It's the governing underlying API of the Windows operating system since (I think) Windows 95.
{o,o}.oO( Want a great RSS reader? Try FeedBeast! )
|)””’) ( Check out my profile for a special members deal! )
-”-”-
|
|
|
|
|
Really? I would've never known.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
You learn something new everyday.
{o,o}.oO( Want a great RSS reader? Try FeedBeast! )
|)””’) ( Check out my profile for a special members deal! )
-”-”-
|
|
|
|
|
Even an old dog can learn new tricks when taught with a taser...
Methinks your tongue wasn't in cheek enough... Have you tried sellotape?
Iain.
|
|
|
|
|
LOL sorry, I didn't notice you were an MVP! Haha that makes quite a difference in the mind's eye vs. a n00b.
{o,o}.oO( Want a great RSS reader? Try FeedBeast! )
|)””’) ( Check out my profile for a special members deal! )
-”-”-
|
|
|
|
|
As far as that goes, and to answer my own question, I found what appears to be the information I was looking for to begin with:
Using Application Desktop Toolbars[^]
Logan
{o,o}.oO( Want a great RSS reader? Try FeedBeast! )
|)””’) ( Check out my profile for a special members deal! )
-”-”-
|
|
|
|
|
I have a RichEditCtrl in a dialog box in a MFC program. While it is a simple matter to print from this, I would also like to implement a print preview. Is there any guidance available on how to do this?
|
|
|
|
|
See this[^] article is helpfuls for you,I didnt see it.
|
|
|
|
|
There is a great printing class here:
http://www.codeguru.com/cpp/w-p/printing/article.php/c2955/
I have used it along time. One problem I have, which is really
driving me crazy, is that I have a standard 8.5 x 11 sheet of paper
and cant print text past 10.5". I tried adjusting the SetBottomMargin()
function to:
pPage->SetBottomMargin(-1)
pPage->SetBottomMargin(0);
pPage->SetBottomMargin(11);
but none of them work. The text just doesnt print if it is too low
on the page.
How can print text that is close to the edge of the paper using this
class or not using this class?
Please, any response any one can give me will be greatly appreciated.
Sincerely,
Danielle Brina (an overworked graduate student)
|
|
|
|
|
hi,
i suppose that it should be changed into
double CPage::SetBottomMargin(double w)
{
int temp=m_PrtDesc.rc.bottom;
if(w > 0)
m_PrtDesc.rc.bottom=ConvertToMappedUnits(w,VERTRES);
if(w==-1)
m_PrtDesc.rc.bottom=m_PrtDesc.n_maxLength;
//m_PrtDesc.rc.right=m_PrtDesc.n_maxLength; //previous line
return ConvertToInches(temp,VERTRES);
}
and calling pPage->SetBottomMargin(-1);
|
|
|
|
|
Hello all,
I've created a special class (Class view -> right click -> add class -> MFC Class -> Add)
I've selected the base class CPropertyPage.
I'd like to use it in order to extend several pages that I have in a property sheet. Doing that I'll be able to reuse code without having to use pretranslatemessages and this kind of stuff.
The thing here is that I must be missing something:
In the header file I've changed
class CDlgPPAssEV52 : public CPropertyPage
to
class CDlgPPAssEV52 : public CPropertyPageEx
And in the implementation file I've changed
IMPLEMENT_DYNAMIC(CDlgPPAssEV52, CPropertyPage)<br />
<br />
CDlgPPAssEV52::CDlgPPAssEV52()<br />
: CPropertyPage(CDlgPPAssEV52::IDD)<br />
{<br />
}
to
IMPLEMENT_DYNAMIC(CDlgPPAssEV52, CPropertyPageEx)<br />
<br />
CDlgPPAssEV52::CDlgPPAssEV52()<br />
: CPropertyPageEx(CDlgPPAssEV52::IDD)<br />
{<br />
}
I get this error: cannot convert from '' to 'const CTAMPropertyPage'
Any idea why is this happening?
As always thank you in advance.
|
|
|
|
|
Joan Murt wrote: I get this error: cannot convert from '' to 'const CTAMPropertyPage'
On what line?
Does the CPropertyPageEx class have a constructor that takes (at least) a UINT?
Does CDlgPPAssEV52::IDD exist?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
ooops...
It seems it was too late yesterday... the constructor did not had the UINT...
Thank you.
|
|
|
|
|
Joan Murt wrote: I get this error: cannot convert from '' to 'const CTAMPropertyPage'
What is CTAMPropertyPage ?
Joan Murt wrote: Any idea why is this happening?
Based on what you've shown, no. What statement is the compiler complaining about?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
It is solved, the constructor lacked the UINT...
Sorry for the inconvenience...
|
|
|
|
|
I have dialog based app and dll which hooks WH_CBT. In the app i know which key was pressed and HWND of the app where key was pressed.
I can change keyboard layout for my own app using LoadKeyboardLayout and ActivateKeyboardLayout. But how can i change keyboard layout for another application - for the application where the key (say, i'll monitor for F9) was pressed, the one i have HWND for?
Thanks
|
|
|
|
|
As is known, Visual C++ has two character modes: ascii char (8 bits) and Unicode WCHAR (16 bits). If I use such a program to write to a .TXT file, please what is the internal format of a .TXT file, so that whatever reads it can distinguish between one 16-bit Unicode character and two adjacent ascii 8-bit characters? What are the special roles of the 8-bit control characters (ascii 0 to 31)? I know of CR LF TAB, but what do the rest do?
|
|
|
|
|
Anthony Appleyard wrote: ...what is the internal format of a .TXT file, so that whatever reads it can distinguish between one 16-bit Unicode character and two adjacent ascii 8-bit characters?
Can you use IsTextUnicode() after reading a chunk from the beginning of the file?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
I must make as a diploma project an "Distributed File System" with XPCOM components. I honestly don't know how to start. I followed that "Creating a C++ XPCOM component" tutorial from iosart.com/firefox/xpcom/ but I need to create XPCOM components(using VC++ 6.0) that work in a standalone program (without firefox or other platforms). What should I do ?
Anybody who has any ideas... please help.
Thanks in advance !
|
|
|
|
|
cuesdean florin wrote: What should I do ?
Have you gone to the source[^] yet?
|
|
|
|
|
Sorry to bother you , I searched the archive but couldn't find anything that could help ...
I'm exporting a couple of entry points from a very simple Dll, and I'm doing it (so it seems
at least) in the right way , that is :
__declspec (dllexport) DWORD Function_1 (...)
{
...
}
__declspec (dllexport) DWORD Function_2 (...)
{
...
}
I'm linking the dll "explicitly", that is , I'm using the LoadLibrary() + GetProcAddress()
combination to retrieve the pointers to the entry points of the functions .
The LoadLibrary () loads correctly the dll, but the GetProcAddress() always returns NULL.
I included the dll code in a .cpp file, as I did with the calling code , so I think there
should be no name-mangling problems .
The system error code is 127, that is "the specified procedure could not be found" , as if the
export I make in the dll code is incorrect ....
Could it be a problem of calling conventions ? I tried a variety of combinations between calling
code and dll code but nothing seemed to work fine .... I know that it should be __stdcall, so I set this option both in the main and in the dll project....
Any advice ?
Thank you , a happy new year to everybody .
|
|
|
|