|
|
Can any one give me brief idea how to use the PX_BLOB in the acticex control?
Tell me how to give the argument in this function.
Thanks in Advance
Mallikarjun
|
|
|
|
|
Isn't that provided in documentation ?
|
|
|
|
|
it is not given in document.so i kindly request u to tell me how can we use PX_BLOB in activex control?
|
|
|
|
|
|
Hi.
In my application I am trying to read all the fonts from system’s font folder and loading them in a drop down box so that user can pick any of the available fonts.
I am using EnumFontFamProc() for reading all the fonts from Fonts folder and here is the code snippet for that….
int CALLBACK CFontCombo::EnumFontFamProc(ENUMLOGFONT FAR *lpelf,
NEWTEXTMETRIC FAR *lpntm, int FontType, LPARAM lParam)
{
if(FontType & TRUETYPE_FONTTYPE)
{
CFontCombo *pxFC = (CFontCombo *) lParam;
pxFC->AddString(lpelf->elfLogFont.lfFaceName);
}
return 1;
}
Application successfully reads all TTF (Tru Type Fonts) but fails to read OTF (Open Type Font) that are present in Fonts folder.
What’s the solution for this problem?
Thanks
Sameer Thakur
|
|
|
|
|
int CALLBACK CFontCombo::EnumFontFamProc(ENUMLOGFONT FAR *lpelf,
NEWTEXTMETRIC FAR *lpntm, int FontType, LPARAM lParam)
{
<font color=red>if(FontType & TRUETYPE_FONTTYPE)</font> <-- What is this doing here??
{
CFontCombo *pxFC = (CFontCombo *) lParam;
pxFC->AddString(lpelf->elfLogFont.lfFaceName);
}
return 1;
}</blockquote>
|
|
|
|
|
Hi,
once I wrote a similar thing, but I used EnumFontFamiliesEx because it uses another callback proc which uses EnumFontFamExProc. There you get an NEWTEXTMETRICEX pointer and there you can test the
ntmFlags member of the ntmTm member:
if ( ( ( lpntme -> ntmTm.ntmFlags & NTM_PS_OPENTYPE ) == NTM_PS_OPENTYPE ) ||
( ( lpntme -> ntmTm.ntmFlags & NTM_TT_OPENTYPE ) == NTM_TT_OPENTYPE ) )
{
// this is an open type font
...
}
Cheers
Stefan
|
|
|
|
|
Hi, I need to change menu caption while the app is running.
Please help me.
Thanks
Papais
|
|
|
|
|
Use ModifyMenu, refer this thread[^].
|
|
|
|
|
if your application is a simple SDI or MDI,
Add this statement,where ever you want to change the menu title.
::SetWindowText(this->m_pMainWnd->m_hWnd,"TestCaption");
Appu..
"My blood group is not B+.But I have it my blood"
|
|
|
|
|
Of course not prasad_som he doesnt need
|
|
|
|
|
Hi,
does anyone know a way to find out if a certain menu handle denotes a popup menu or a menu bar? The GetMenuInfo() API function does not seem to provide this information. If someone knows for sure that it is really not possible to obtain the information about the menu type from the menu handle - this could also help ...
Best regards,
Daniel
|
|
|
|
|
Did you check GetMenuBarInfo ??
Appu..
"My blood group is not B+.But I have it my blood"
|
|
|
|
|
GetMenuBarInfo() takes the handle of the owning window, not a menu handle.
|
|
|
|
|
schwadan wrote: If someone knows for sure that it is really not possible to obtain the information about the menu type
It is possible,
Use GetMenuState .
UINT nState = GetMenuState(m_hMenu,0,MF_BYPOSITION);
if (LOBYTE(nState) & MF_POPUP)
{
}
|
|
|
|
|
I just tried it out: The example works if a pass the handle to the parent menu bar for m_hMenu. If I pass the handle of the popup menu itself, the MF_POPUP flag is not set in the result. This is also what one would expect according to the API doc.
It seems it is really not possible to retrieve the menu type from the menu handle itself. It seems I've found a hole in the Win32 API ...
Daniel
|
|
|
|
|
schwadan wrote: The example works if a pass the handle to the parent menu bar for m_hMenu.
It meant to used that way only, watch second paramter, where you can give menu items ID.
You may like to explore GetMenuItemInfo ,too.
|
|
|
|
|
How do you add an application icon using Visual Studio 6 for a WIN32 console exe application? Thanks.
|
|
|
|
|
Add an icon resource with ID 1. Windows will use the first icon resource in the EXE.
I've noticed on XP in Windows Explorer the custom icon doesn't show in list or detail view modes.
Mark
"Great job, team. Head back to base for debriefing and cocktails."
(Spottswoode "Team America")
|
|
|
|
|
|
I have developed a text editor supporting international languages.
One problem still bother me: The location of the IME window.
When I have an asian user entering asian characters, (s)he does so through an IME window which is located in a seemingly unpredictable/uncontrollable location.
Is there a way I could set the location, size, and font (or at least font size) used by this IME window?
How could I know when it is used or not?
|
|
|
|
|
hi,
i would like to know the procedure for loading a jpg file and separating into RGB components in Visual C++ / C++. I have to start with the fast fourier transform of the image. I have background in C, but not that much. I have got my fft code written in matlab. I can write the code for fft in C++, but i dont know how to load the image. it would be highly helpful if it would be suggested here!
thanks a ton,
-cedance
|
|
|
|
|
Going to roll your own loader? Cool project.
Lots of useful info can be obtained and/or linked to from here: JPEG Homepage[^]
You'll probably need to understand the JFIF file format and the compression itself.
Enjoy!
Mark
"Great job, team. Head back to base for debriefing and cocktails."
(Spottswoode "Team America")
|
|
|
|
|