CStringArray...also:
vector <int> linecnt;
Type: Posts; User: Unimatrix_001
CStringArray...also:
vector <int> linecnt;
Hi,
I've got the following code:
CString input;
bool found = false;
fstream myfile;
..and so it is! Cheers mate! :D
Hi,
For some reason in a project I am working in code completion isn't working fully. I only get the methods, variables etc.. that I have created and not the complete list of all the ones...
Well after a bit of research and some work...I'm now subclassing the window and am using (sorry in advance for the bad formatting...):
LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg,...
Hmm....what would I need to put to keep my text there then? I've tried it returning FALSE to make sure that the window doesn't deactivate (i.e. when my text disappears) but it just ain't working :(
...
Hi there,
I've got the following:
if(pMsgDet->message==WM_NCPAINT){
//the code from http://support.microsoft.com:80/support/kb/articles/q99/0/46.asp&NoWebContent=1 WM_NCPAINT part...
Thanks for that Ken!....
Although I'm struggling with just finding where to actually paint the button? I don't want to draw over the 3 buttons that are already on the screen, so is there some way...
As the subject suggests,
How can I go about adding my own button next to the minimize, resize buttons at the top of a window. This is in an application that I do not own.
Anybody for a try?...
Figured it out...the data is not even there to collect as the column itself is destroyed.
Thanks anyways
Hi, I'm using:
LVITEM lvi;
memset(&lvi, 0, sizeof(LVITEM));
lvi.mask=LVIF_TEXT;
lvi.iSubItem=5;
lvi.pszText=buff;
lvi.cchTextMax=19;
Well...that's the trouble :rolleyes:. This is to put in with a custom button, which can have a resource of the bitmap or a handle to a file. Since I don't have a resource I'm doing it like this. But...
Hi,
I'm wanting to get a handle to a bitmap (not in a resource!) and I'm using:
HBITMAP ButtonPic;
...
Thanks guys! I'll remember that advice! :)
Hi all!
I've got the following:
#define BC 60001;
....
wmID=LOWORD(pMsgDet->wParam);
Woaw!!!! You people seriously move quick :eek:
Thanks Fordy. Explaination was a treat :)
poccil - I just couldn't get my head around it, although after Fordys explaination and yours, it seems...
Can anybody help me with this please:
GetWindowThreadProcessId
The format is as follows:
hrm....this was meant to be a reply in my previous post...:rolleyes: ...so sorry for that!
Things still aren't working so well...
but I've assigned the button a command ID as you said, and I got the daft error about the bracket thing...
SO
I swapped the ID...whatever with just a...
Right...these are the messages:
<00001> 002F0420 S ....TB_ADDSTRING hinst:00000000 idString:24704
<00002> 002F0420 R ....TB_ADDSTRING nIndex:47
<00003> 002F0420 S ....TB_SETBUTTONSIZE...
"Did you #define the ID for the button and set it? (that should be 'undeclared identifier' error)"
Sorry but I'm not following you there...
"Have you tried using InsertButton to put the...
<yoink>
I'm getting a stupid error about the format of GetDlgItem...
handle=GetDlgItem (TBHandle,BTNCMD);
that's what I've got but I'm getting:
syntax error : missing ')' before ';'
syntax error :...
I'm afraid nothing there has made a difference :(, including the size.
"How are you intercepting the toolbar msg's for your buttons (as opposed to other msg's for the toolbar) ?
I'm not...
Sorry, I can't figure out what you're trying to say...I thought I needed a pointer to a TBBUTTON array when calling TB_ADDBUTTONS?
"If the toolbar was created using the CreateWindowEx...