|
probably you could try to override the OnUpdateCommandUI for the toolbar?
Sonork 100.41263:Anthony_Yio
Life is about experiencing ...
|
|
|
|
|
That is also done... m_CUID->Enable(TRUE)
|
|
|
|
|
Are your toolbar creation syntaxes right?
Eg.
if (!m_YourToolbar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP
| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
!m_YourToolbar.LoadToolBar(IDR_TEMPLATEJOB))
Sonork 100.41263:Anthony_Yio
Life is about experiencing ...
|
|
|
|
|
Or
did you call
CFrameWnd::ShowControlBar(CControlBar* pBar, BOOL bShow, BOOL bDelay );?
Sonork 100.41263:Anthony_Yio
Life is about experiencing ...
|
|
|
|
|
Thanks a lot...But the problem is solved by some other way..here is the solution
Question was)
I had created Toolbar on Dialog...and I was changin its m_toolbar.SetParent(this) or (OtherWnd) and was getting disabled
Solution) We need to add
afx_msg void OnXXX()
afx_msg void OnYYY()
and its implementation on both the side, i.e on Dialog and on CXXXFrameChild or the other Window handle...
regards
Balkrishna Talele
|
|
|
|
|
:-DHow to retrieve Item Text of a List Control in an application from another application?
thx
|
|
|
|
|
FindWindows() to get the HWD and use GetDlgItem() to retrieve the HWND for the list control?
Sonork 100.41263:Anthony_Yio
Life is about experiencing ...
|
|
|
|
|
I can get the handle of an lsit control in an application from another, but it is difficult to get Item text. U know, GetItemText called from another process is always return nothing.
|
|
|
|
|
I am devloping MMC application using win32 coding and I can't find any clear examples of how to handle the pressing of enter in a (single-line) edit control.
I'm trying it at present in the general WM_COMMAND case of message and am comparing LOWORD (wParam) to the ID of the edit control but I'm clearly missing something.I tried subclassing also.
Does anyone know what I'm doing incorrectly...
Thanks in advance!
|
|
|
|
|
hi all,
May be I had posted the question in wrong place.
I am trying to write a simple HTTP Client in MFC am i am using MFc classes
CInternetSession ,CHttpConnection and CHttpFile.
The server generated cookies.
My question is how do i reterive the cookies from server. using the function of class CInternetSession.or any other method.
Thanks in advance,
Abhishake
|
|
|
|
|
Cookies are suppose to be in the client PC which running the browser. What the point of accesing the cookies in the server??
If were to access the cookies of your client, you can try (from MSDN)
Wininet.h
InternetGetCookie(...)
hope this helps
Sonork 100.41263:Anthony_Yio
Life is about experiencing ...
|
|
|
|
|
Hello everyone:
How to separate a string to several parts fastly in a MFC project?
Example:
string A is "abc efg @ # !!23 456 ="
Is there a fast good way to separate A to
"abc","efg","@","#","!!23","456","=" ?
Do you have or know any samples or ways? Please help me.
Thank you.
-Freehawk
|
|
|
|
|
going by memory here try strtok
i can't even remember what my point is now, but anyway, i'm correct
Barring unforeseen acts of God and Adminstrators, my server will be up tomorrow. I'm more worried about the Adminstrators.
|
|
|
|
|
you've got a function which synopsis is the following
CString CString::Mid(<font style="color:blue;">int</font> nFirst, <font style="color:blue;">int</font> nCount) <font style="color:blue;">const</font>; nFirst is the position of the first char you want to extract (pos 0 for the first of the string),
nCount is the number of chars you want.
look at the MSDN CString Class Members for more details
TOXCCT >>> GEII power
|
|
|
|
|
See if AfxExtractSubString() is of any help.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Use CString.Tokenize into split separate strings, and use CString.AppendFormat("\"%s\"", ...) and CString.Apend(",") to build the new string.
|
|
|
|
|
UpdateData(TRUE);
CString erg[20];
int a,b,z;
z=0;
a=0;
for(;;)
{
b=m_text.Find(" ",a);
if(b<0)
{
erg[z]=m_text.Mid(a,m_text.GetLength()-a);
break;
}
erg[z]=m_text.Mid(a,b-a);
a=b;
a++;
z++;
}
|
|
|
|
|
Hello people.
I wonder if any of you knows about a c++ application which can search the registry and find all the guids for a certain application name:
For example lets say i have2 CLSIDs
{10711FD0-3DDC-473a-83E0-738571DFF7B3}
{867C18BE-730B-4c80-AE47-9567A525FAFF}
With a prog id of:
Anton.Class.1
Now, i want to find all these entries and delete them, so i can have a clean registry.
|
|
|
|
|
delete the dll file that is associated with that guid and run regclean you can find it at microsoft site.
|
|
|
|
|
Too much work. I want this done automatically.(Like i specify the dll names,the program finds up all the occurences and i choose whatever to delete them all or not.
|
|
|
|
|
Hi,
I'm implementing drag & drop through OLE. I actually have that part working, but I also want (or actually need) to show a drag image during the actual drag. My idea was to use CImageList's functionality, so when the drag begins, I call BeginDrag and DragEnter, during GiveFeedback I keep calling DragMove, with the current cursor position, and when the drag ends, I call DragLeave and EndDrag.
These functions all work, that is, they don't return error codes or anything. But still the image doesn't show. I don't really know what I would be doing wrong, or what I'm missing. Is there perhaps another way to show a drag image during an OLE drag.
Hope someone can help me out here, thanks.
|
|
|
|
|
The article "Implementing Reusable Drag & Drop Classes" By Leon Finker
in section MFC / C++ >> Shell Programming >> General, should provide you with enough information.
Good Luck!
INTP
|
|
|
|
|
At first glance, it looks wonderful. Thank you
|
|
|
|
|
Ok, here's my problem:
I am trying to complie an application using Visual Studion.net(2002) Today all of a sudden when I try to compile code I have compiled before, I'm getting "error spawning cl.exe". This started when I tried to use some old code, I had done previously. My problem is that now, none of my previous ok code is compiling. I have removed visual studio and re-installed it, and this seems to have sorted the problem, but now I have gone back to code I was working on before and the error has showed again, it won't let me compile anything!
|
|
|
|
|
its a know bug checkout microsoft site. there they have some procedure to fix that problem...
|
|
|
|