|
Do you want to scrolls for your image ?
|
|
|
|
|
I want to scroll for the graph(longer that what it can display in one window) that i draw.
May i know how to do this in picture or custom control so that the graph that i drew will be able to scroll properly. What other functions i need to look for? I'm using VC6, dialog app with MFC.
Thanks
|
|
|
|
|
I am creating several PDF reports in my application. Now according to one requirement i want to merge all PDFs in a single PDF. Eg. if there are x.pdf,y.pdf,z.pdf reports i will have to merge them in a file package.pdf so that all the three PDFs will be seen in a single PDF. Any idea?
Any free API available?
Help me please. Thanks in advance.
Jiteen
|
|
|
|
|
i want to read and play it.i want a sample to decode or play wma and wmv files.
sorry because i dont know where to ask it.
thank you.
|
|
|
|
|
wma and wmv files are Advanced Systems Format (ASF) files.
ASF files are covered in the Windows Media Format 11 SDK[^]
There's sample apps in the SDK as well.
If you choose to use DirectShow to play these files there's the DirectShow[^]
SDK (which is now part of the Platform SDK).
If you want to use Windows Media Player there's the Windows Media Player 11 SDK[^]
|
|
|
|
|
I hope a message is sent to parent window when user right clicks a button on CToolBar - so I can display a pop up menu associated with the button.
can a button on CToolBar send message with mouse right-clicking?
if not, any idea to modify CToolBar?
thx
-- modified at 12:48 Saturday 9th December, 2006
|
|
|
|
|
A toolbar sends a NM_RCLICK notification through a WM_NOTIFY message when the user right-clicks
on the toolbar. To get the message in your parent window, add a OnNotify() override to the
parent's class, something like:
BOOL CMyWnd::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult)
{
if (wParam == ID_MYTOOLBAR)
{
NMMOUSE *pNMMouse = (NMMOUSE *)lParam;
if (pNMMouse->hdr.code == NM_RCLICK)
{
return TRUE;
}
}
return CWnd::OnNotify(wParam, lParam, pResult);
}
|
|
|
|
|
Now that I've had some caffeine, I thought maybe an easier way would be to let MFC do some of the
work
ON_NOTIFY(NM_RCLICK, ID_MYTOOLBAR, OnToolbarRClick)
...
void CMyWnd::OnToolbarRClick(NMHDR *pNMHdr, LRESULT *pResult)
{
NMMOUSE *pNMMouse = (NMMOUSE *)pNMHdr;
*pResult = (LRESULT)TRUE;
}
|
|
|
|
|
the structure is of type
typedef struct _TBBUTTON {
int iBitmap;
int idCommand;
BYTE fsState;
BYTE fsStyle;
DWORD dwData;
int iString;
} TBBUTTON, NEAR* PTBBUTTON, FAR* LPTBBUTTON;
where int iString is type
Zero-based index of the button string.
how to read the value of iString, any idea or any help,
thanks
swarup
|
|
|
|
|
does this one work?
CToolBarCtrl::GetButton(int nIndex,LPTBBUTTON lpButton).
|
|
|
|
|
nah it wont help
my prob is
TBBUTTON tb;
i want to read the value of tb's iString value
can u help me to know how to read the value of TBBUTTON's int iString
|
|
|
|
|
How to change a specific color of an image ? either BMP or JPG
|
|
|
|
|
Is CImage::SetPixelRGB helpfuls?
|
|
|
|
|
Hi friends,
I am new bie need to know that How to use a unicode charset dll in any vc++ application.
Thanks in advance
|
|
|
|
|
change CharacterSet property in your C++ projekt settings (VS2005) to "use unicode charset".
If you are not using VS 2005. Add "_UNICODE" and "UNICODE" define to your preprocessor defines.
|
|
|
|
|
how can i draw border for a rounded rectangular dialog that doen'st have title bar. The border in the dialog properties is set to "None" as i m making the dialog to rounded rectangle.
Even the border has to be rounded rectangle.
|
|
|
|
|
please stop asking the same question again and again. Each time you have asked you were given various methods to do what you want by different people. Go read your last posts, you can find them and other similar questions/answers by using the search feature of the forums.
|
|
|
|
|
i m sorry sir actually i was unable to use FrameRgn API so again i had posted one more.
|
|
|
|
|
Hi
I have a ListCtrl for which I have added LVS_EX_CHECKBOXES. My requirement is whenever I check/uncheck the checkbox of the ListControl, a notification is needed whether the item is checked or not or any related info based on which I will carry some other task . For this which function will be useful.Hope I am clear.
Thanks in advance.
Taruni
|
|
|
|
|
Taruni wrote: a notification is needed whether the item is checked or not
A LVN_ITEMCHANGED notification is sent to the control's parent.
This article may help: Adding Checkboxes to a list control[^]
especially the section "How to get notification when an item is checked / unchecked".
|
|
|
|
|
Hi,
I have placed a ComboBox in a formview.In OnInitialUpdate i am setting the ComboBox Current selection to Zero.When i run the application i am getting an ASSERTION.When i debug the application,i find the problem at SetCurSel funtion.I am getting the Handle of ComboBox as NULL.How to over come this problem.
Thanks in before
James
|
|
|
|
|
maybe u change resource ID of the control?
use class wizard to delete member of the CListBox then add it again.
I just guess so.
|
|
|
|
|
If insert another combobox and declare a variable for it what happens?
|
|
|
|
|
Make sure you are trying to use the combo box after the base class version of OnInitialUpdate(...) has been called, or your controls may not have been created or attached-to yet.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
Hello,
Recently I have been involved in a debate as to what environment (C# or C++) is better for developing a highly scalable Completion Ports based server capable of handling thousands of simultaneous connections (namely, its network layer). The issue is still open. I would really like to hear opinion of the community with all the pros and cons (within boundaries of the task, i.e. - network layer) of both environments. All opinions are very much appreciated.
Thanks in advance. Dennis.
|
|
|
|